LCDproc development and user support list

Text archives Help


[lcdproc] Again FreeBSD and 0.4.1


Chronological Thread 
  • From: gfk AT logidac.com (Guillaume Filion)
  • Subject: [lcdproc] Again FreeBSD and 0.4.1
  • Date: Tue, 5 Jun 2001 11:17:27 -0400

>Age Kamminga wrote:
>>
>> After the modifications made in 0.4.1 it compiles fine except for one
>> warning:
>>
>> gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -Wall -Wno-unused -O6 -c sock.c
>> sock.c: In function `sock_create_server':
>> sock.c:87: warning: implicit declaration of function `bzero'
>
>Well, that's strange... Funny, are you running FreeBSD? bzero was a
>BSD'ism... Maybe we didn't get an include file someplace that caused
>that warning... Line 87 is the FD_ZERO macro. FD_ZERO must be declared
>in terms of bzero...
>

http://support.qnx.com/support/docs/qnx_neutrino/lib_ref/b/bzero.html says:
-----
#include <strings.h>

void bzero( void *dst, size_t n );
-----
and sock.c does not include <strings.h>, so I guess it's the problem.
Adding #include <strings.h> on the top of sock.c removes the warning
on FreeBSD 4.0. Is strings.h present on every POSIX compliant system?
If not we should include an autoconf test for it.

Best,
GFK's
--
Guillaume Filion
Logidac Tech., Beaumont, Qu=E9bec, Canada - http://logidac.com/
PGP Key: http://guillaume.filion.org/pgp (this will redirect)
PGP Fingerprint: 14A6 720A F7BA 6C87 2331 33FD 467E 9198 3DED D5CA


-----------------------------------------------------------
To unsubscribe from this list send a blank message to
lcdproc-unsubscribe AT lists.omnipotent.net




Archive powered by MHonArc 2.6.18.

Top of page