summary refs log tree commit diff
path: root/stdio/stdio.h
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 /stdio/stdio.h
parent34a4b66d934c5aa8d413073f0df773ed5830c05b (diff)
downloadglibc-a379e56acc0955dd1ec03740cfbb632ce54b7416.tar.gz
glibc-a379e56acc0955dd1ec03740cfbb632ce54b7416.tar.xz
glibc-a379e56acc0955dd1ec03740cfbb632ce54b7416.zip
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 'stdio/stdio.h')
-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