From a63830271b5143416981f1171503e10bd6b6056f Mon Sep 17 00:00:00 2001 From: Matthias Andree Date: Tue, 30 May 2006 16:27:45 +0200 Subject: [PATCH] Declare getopt() according to POSIX 2001 if getopt.h not found. Signed-off-by: Matthias Andree --- misc/blkid.c | 1 + misc/uuidgen.c | 1 + 2 files changed, 2 insertions(+) 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 -- 1.8.3.1