summaryrefslogtreecommitdiff
path: root/libio
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1998-09-23 15:28:54 +0000
committerUlrich Drepper <drepper@redhat.com>1998-09-23 15:28:54 +0000
commita379e56acc0955dd1ec03740cfbb632ce54b7416 (patch)
tree408e9a4ab3aa25628e67dec3b09448eee54a4054 /libio
parent34a4b66d934c5aa8d413073f0df773ed5830c05b (diff)
Update.
1998-09-23 15:25 Ulrich Drepper <drepper@cygnus.com> * libio/stdio.h: Define __need_getopt and include getopt.h to define getopt stuff. * posix/unistd.h: Likewise. * stdio/stdio.h: Likewise. * posix/getopt.h: Remove _GNU_SOURCE use. If __need_getopt is defined define only getopt and the variables. (CPPFLAGS): Add -DUSE_LIBDB1
Diffstat (limited to 'libio')
-rw-r--r--libio/stdio.h11
1 files changed, 2 insertions, 9 deletions
diff --git a/libio/stdio.h b/libio/stdio.h
index 912a30e198..c800300dce 100644
--- a/libio/stdio.h
+++ b/libio/stdio.h
@@ -710,15 +710,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