Whamcloud - gitweb
Declare getopt() according to POSIX 2001 if getopt.h not found.
authorMatthias Andree <matthias.andree@gmx.de>
Tue, 30 May 2006 14:27:45 +0000 (16:27 +0200)
committerMatthias Andree <matthias.andree@gmx.de>
Tue, 30 May 2006 14:27:45 +0000 (16:27 +0200)
Signed-off-by: Matthias Andree <matthias.andree@gmx.de>
misc/blkid.c
misc/uuidgen.c

index 256f4f1..c02de71 100644 (file)
@@ -15,6 +15,7 @@
 #ifdef HAVE_GETOPT_H
 #include <getopt.h>
 #else
+extern int getopt(int argc, char * const argv[], const char *optstring);
 extern char *optarg;
 extern int optind;
 #endif
index e13aad5..5e7eef3 100644 (file)
@@ -16,6 +16,7 @@
 #ifdef HAVE_GETOPT_H
 #include <getopt.h>
 #else
+extern int getopt(int argc, char * const argv[], const char *optstring);
 extern char *optarg;
 extern int optind;
 #endif