windbus rev 162 fails to build

Ralf Habacker ralf.habacker at freenet.de
Thu Aug 24 22:51:04 PDT 2006


Mathew Yeates schrieb:
> I had to replace
>
> #include <stdio.h>
> #include <stdlib.h>
> #include <unistd.h>
> #include <string.h>
>
> with
> #include <stdio.h>
>
> to avoid the following error
>
> ----------------------------
> [ 94%] Building C object
> test/name-test/CMakeFiles/test_names1.dir/C_/windbus/tr
> unk/test/name-test/test-names.obj
> test-names.c
> C:\windbus\trunk\test\name-test\test-names.c(3) : fatal error C1083:
> Cannot open
> include file: 'unistd.h': No such file or directory
> NMAKE : fatal error U1077: 'C:\PROGRA~1\MID05A~1\VC\bin\cl.exe' :
> return code '0
> x2'
> Stop.
Does the following code work ?

#include <stdio.h>
#include <stdlib.h>
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
#include <string.h>


Ralf




More information about the dbus mailing list