]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commitdiff
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 256f4f148895c5b7d5a0b23764816701296841b8..c02de71417441438fb6f2951ceeca45ba8dc8fb5 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 e13aad562968131ddfd10744d57fbd0439b6c8fe..5e7eef3eb17c9b1eef198632b378d4d2a3b87537 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