about summary refs log tree commit diff
path: root/stdio
diff options
context:
space:
mode:
Diffstat (limited to 'stdio')
-rw-r--r--stdio/stdio.h11
1 files changed, 2 insertions, 9 deletions
diff --git a/stdio/stdio.h b/stdio/stdio.h
index 2ec55c486a..c2d2060e33 100644
--- a/stdio/stdio.h
+++ b/stdio/stdio.h
@@ -832,15 +832,8 @@ extern void funlockfile __P ((FILE *__stream));
 /* The X/Open standard requires some functions and variables to be
    declared here which do not belong into this header.  But we have to
    follow.  In GNU mode we don't do this nonsense.  */
-
-/* For more information on these symbols look in <getopt.h>.  */
-extern char *optarg;
-extern int optind;
-extern int opterr;
-extern int optopt;
-
-extern int getopt __P ((int __argc, char *__const *__argv,
-			__const char *__shortopts));
+# define __need_getopt
+# include <getopt.h>
 #endif
 
 __END_DECLS