[crossfire] [PATCH] Crossfire client linking fails in trunk

Kevin Zheng kevinz5000 at gmail.com
Mon Aug 11 21:49:29 CDT 2014


Hi Tolga,

Sorry for the follow-up.

On 08/11/2014 14:16, Tolga Dalman wrote:
> /home/tdalman/src/crossfire/client/trunk/common/client.c: In function
> 'negotiate_connection':
> /home/tdalman/src/crossfire/client/trunk/common/client.c:578:9: warning:
> implicit declaration of function 'usleep' [-Wimplicit-function-declaration]
>          usleep(10*1000);    /* 10 milliseconds */
>          ^
> 
> <unistd.h> is not included.

I haven't had the opportunity to clean up the maze of #include's in the
client source code. It appears that 'client.c' includes 'client.h',
which in turn includes 'client-types.h'. This file includes <unistd.h>
conditionally, when HAVE_UNISTD_H is set (presumably for portability).

How are you building the client? Which operating system/environment?
Could you pastebin an entire copy of your build log?

Thanks,
Kevin Zheng


More information about the crossfire mailing list