r3852: port to mac os x which has getopt but not getopt_long
[ctsim.git] / getopt / getopt.h
index c5f98619b9a033d5fc4decebd39840598d0c064d..74a3a5820b37633697d28f27c818eb77fe6f6cfa 100644 (file)
@@ -19,6 +19,9 @@
 
 #ifndef _GETOPT_H
 
+#include "../config.h"
+
+
 #ifndef __need_getopt
 # define _GETOPT_H 1
 #endif
@@ -133,7 +136,7 @@ struct option
    errors, only prototype getopt for the GNU C library.  */
 extern int getopt (int __argc, char *const *__argv, const char *__shortopts);
 # else /* not __GNU_LIBRARY__ */
-extern int getopt ();
+  /* extern int getopt (); */
 # endif /* __GNU_LIBRARY__ */
 
 # ifndef __need_getopt