Fix compiler errors, InitOutput.c: In function ‘ddxGiveUp’: InitOutput.c:178: warning: implicit declaration of function ‘unlink’ InitOutput.c:178: warning: nested extern declaration of ‘unlink’ InitOutput.c: In function ‘vfbAllocateMmappedFramebuffer’: InitOutput.c:601: warning: implicit declaration of function ‘open’ InitOutput.c:601: warning: nested extern declaration of ‘open’ InitOutput.c:601: error: ‘O_CREAT’ undeclared (first use in this function) InitOutput.c:601: error: (Each undeclared identifier is reported only once InitOutput.c:601: error: for each function it appears in.) InitOutput.c:601: error: ‘O_RDWR’ undeclared (first use in this function) InitOutput.c:617: warning: implicit declaration of function ‘write’ InitOutput.c:617: warning: nested extern declaration of ‘write’ InitOutput.c: In function ‘vfbWriteXWDFileHeader’: InitOutput.c:779: warning: implicit declaration of function ‘gethostname’ InitOutput.c:779: warning: nested extern declaration of ‘gethostname’ --- hw/vfb/InitOutput.c | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/hw/vfb/InitOutput.c b/hw/vfb/InitOutput.c index e7dd1d9..4be0026 100644 --- a/hw/vfb/InitOutput.c +++ b/hw/vfb/InitOutput.c @@ -34,6 +34,10 @@ from The Open Group. #include <X11/Xwinsock.h> #endif #include <stdio.h> +#include <unistd.h> +#include <sys/stat.h> +#include <fcntl.h> + #include <X11/X.h> #include <X11/Xproto.h> #include <X11/Xos.h> -- 1.6.3.1 _______________________________________________ xorg mailing list xorg@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/xorg