Whamcloud - gitweb
iscan: fix the test program iscan so it builds again
[tools/e2fsprogs.git] / misc / uuidgen.c
index e13aad5..1233f3d 100644 (file)
@@ -9,6 +9,7 @@
  * %End-Header%
  */
 
+#include "config.h"
 #include <stdio.h>
 #ifdef HAVE_STDLIB_H
 #include <stdlib.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/uuid.h"
-#include "nls-enable.h"
+#include "support/nls-enable.h"
 
 #define DO_TYPE_TIME   1
 #define DO_TYPE_RANDOM 2
@@ -57,7 +59,7 @@ main (int argc, char *argv[])
                default:
                        usage(argv[0]);
                }
-       
+
        switch (do_type) {
        case DO_TYPE_TIME:
                uuid_generate_time(uu);
@@ -69,7 +71,7 @@ main (int argc, char *argv[])
                uuid_generate(uu);
                break;
        }
-       
+
        uuid_unparse(uu, str);
 
        printf("%s\n", str);