[Nut-upsdev] [patch] Small compile fix for 2.2.2

Thomas Jarosch thomas.jarosch at intra2net.com
Thu Jul 3 14:08:02 UTC 2008


On Thursday, 3. July 2008 12:55:09 you wrote:
> > attached is a small compile fix for nut 2.2.2, again it's my friend
> > "struct timeval" which was undefined without the #include statement.
>
> I'm interested in the failure log.

Here you go:

gcc -DHAVE_CONFIG_H -I. -I../include -I../include -O -Wall -Wsign-compare -MT upsclient.lo -MD -MP -MF .deps/upsclient.Tpo -c upsclient.c  -fPIC -DPIC -o .libs/upsclient.o
upsclient.c: In function 'select_read':
upsclient.c:167: error: storage size of 'tv' isn't known
upsclient.c:167: warning: unused variable 'tv'
upsclient.c: In function 'select_write':
upsclient.c:224: error: storage size of 'tv' isn't known
upsclient.c:224: warning: unused variable 'tv'
upsclient.c: In function 'upscli_connect':
upsclient.c:424: warning: passing argument 1 of 'gethostbyaddr' from incompatible pointer type
make[1]: *** [upsclient.lo] Error 1

Thomas



More information about the Nut-upsdev mailing list