[PATCH 9/9] Add missing <unistd.h>, <sys/stat.h>, <fcntl.h> includes
Ben Gamari
bgamari.foss at gmail.com
Sun Jun 14 00:36:38 PDT 2009
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
More information about the xorg
mailing list