From: Sami Kerola Date: Sat, 3 Oct 2015 18:31:05 +0000 (+0100) Subject: blkid, uuidd, uuidgen: assume getopt.h and getopt.h are available X-Git-Tag: v2.28-rc1~322 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=67791b77870c09c06cae8441c0c3d4e90fd3fa1d;p=thirdparty%2Futil-linux.git blkid, uuidd, uuidgen: assume getopt.h and getopt.h are available These headers are in use allover this project without issues. Signed-off-by: Sami Kerola --- diff --git a/misc-utils/blkid.c b/misc-utils/blkid.c index bbe7b62677..c0be45746f 100644 --- a/misc-utils/blkid.c +++ b/misc-utils/blkid.c @@ -17,13 +17,7 @@ #include #include #include -#ifdef HAVE_GETOPT_H #include -#else -extern int getopt(int argc, char * const argv[], const char *optstring); -extern char *optarg; -extern int optind; -#endif #define OUTPUT_VALUE_ONLY (1 << 1) #define OUTPUT_DEVICE_ONLY (1 << 2) diff --git a/misc-utils/uuidd.c b/misc-utils/uuidd.c index 76f5e41310..e19be52cdb 100644 --- a/misc-utils/uuidd.c +++ b/misc-utils/uuidd.c @@ -9,9 +9,7 @@ * %End-Header% */ #include -#ifdef HAVE_STDLIB_H #include -#endif #include #include #include @@ -23,13 +21,7 @@ #include #include #include -#ifdef HAVE_GETOPT_H #include -#else -extern int getopt(int argc, char * const argv[], const char *optstring); -extern char *optarg; -extern int optind; -#endif #include "uuid.h" #include "uuidd.h" diff --git a/misc-utils/uuidgen.c b/misc-utils/uuidgen.c index 54c5773aa7..40b00ffeb2 100644 --- a/misc-utils/uuidgen.c +++ b/misc-utils/uuidgen.c @@ -10,16 +10,8 @@ */ #include -#ifdef HAVE_STDLIB_H #include -#endif -#ifdef HAVE_GETOPT_H #include -#else -extern int getopt(int argc, char * const argv[], const char *optstring); -extern char *optarg; -extern int optind; -#endif #include "uuid.h" #include "nls.h"