From: Matthias Andree Date: Tue, 30 May 2006 14:27:45 +0000 (+0200) Subject: Declare getopt() according to POSIX 2001 if getopt.h not found. X-Git-Tag: E2FSPROGS-1_40-WIP-1114~88 X-Git-Url: https://git.whamcloud.com/gitweb?a=commitdiff_plain;h=a63830271b5143416981f1171503e10bd6b6056f;p=tools%2Fe2fsprogs.git Declare getopt() according to POSIX 2001 if getopt.h not found. Signed-off-by: Matthias Andree --- diff --git a/misc/blkid.c b/misc/blkid.c index 256f4f1..c02de71 100644 --- a/misc/blkid.c +++ b/misc/blkid.c @@ -15,6 +15,7 @@ #ifdef HAVE_GETOPT_H #include #else +extern int getopt(int argc, char * const argv[], const char *optstring); extern char *optarg; extern int optind; #endif diff --git a/misc/uuidgen.c b/misc/uuidgen.c index e13aad5..5e7eef3 100644 --- a/misc/uuidgen.c +++ b/misc/uuidgen.c @@ -16,6 +16,7 @@ #ifdef HAVE_GETOPT_H #include #else +extern int getopt(int argc, char * const argv[], const char *optstring); extern char *optarg; extern int optind; #endif