Update of /cvsroot/libsysio/libsysio/tests
In directory sc8-pr-cvs6.sourceforge.net:/tmp/cvs-serv17922
Modified Files:
test_mknod.c
Log Message:
Need to include <getopt.h> now, as well.
Index: test_mknod.c
===================================================================
RCS file: /cvsroot/libsysio/libsysio/tests/test_mknod.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -w -b -B -p -r1.1 -r1.2
--- test_mknod.c 3 May 2006 22:31:04 -0000 1.1
+++ test_mknod.c 28 Mar 2007 21:26:29 -0000 1.2
@@ -41,6 +41,11 @@
* le...@sa...
*/
+/*
+ * Can't provoke a definition of the S_IFMT macros without a little extra work.
+ */
+#define _BSD_SOURCE
+
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@@ -49,6 +54,7 @@
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
+#include <getopt.h>
#if defined(SYSIO_LABEL_NAMES)
#include "sysio.h"
|