From a379e56acc0955dd1ec03740cfbb632ce54b7416 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Wed, 23 Sep 1998 15:28:54 +0000 Subject: Update. 1998-09-23 15:25 Ulrich Drepper * 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 --- libio/stdio.h | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) (limited to 'libio/stdio.h') 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 . */ -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 #endif __END_DECLS -- cgit v1.2.3