]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
blkid, uuidd, uuidgen: assume getopt.h and getopt.h are available
authorSami Kerola <kerolasa@iki.fi>
Sat, 3 Oct 2015 18:31:05 +0000 (19:31 +0100)
committerKarel Zak <kzak@redhat.com>
Fri, 9 Oct 2015 09:17:09 +0000 (11:17 +0200)
These headers are in use allover this project without issues.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
misc-utils/blkid.c
misc-utils/uuidd.c
misc-utils/uuidgen.c

index bbe7b6267711795ae278ab2b1aceef523eb84a46..c0be45746f45ba041e2ebb3665c0167916cba8a4 100644 (file)
 #include <sys/stat.h>
 #include <fcntl.h>
 #include <errno.h>
-#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
 
 #define OUTPUT_VALUE_ONLY      (1 << 1)
 #define OUTPUT_DEVICE_ONLY     (1 << 2)
index 76f5e413105c16ad61f1b06b0ef0b6f19c240e84..e19be52cdb1e9ff849a195f2d4aeeb12f7fcf04e 100644 (file)
@@ -9,9 +9,7 @@
  * %End-Header%
  */
 #include <stdio.h>
-#ifdef HAVE_STDLIB_H
 #include <stdlib.h>
-#endif
 #include <unistd.h>
 #include <inttypes.h>
 #include <errno.h>
 #include <fcntl.h>
 #include <signal.h>
 #include <string.h>
-#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
 
 #include "uuid.h"
 #include "uuidd.h"
index 54c5773aa7e206d3f66b1bfec4e42f3dad50c9a6..40b00ffeb250f3578ef40e89e9dfa6b572486518 100644 (file)
  */
 
 #include <stdio.h>
-#ifdef HAVE_STDLIB_H
 #include <stdlib.h>
-#endif
-#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
 
 #include "uuid.h"
 #include "nls.h"