about summary refs log tree commit diff
path: root/sysdeps/generic/init-first.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2001-08-11 20:40:40 +0000
committerUlrich Drepper <drepper@redhat.com>2001-08-11 20:40:40 +0000
commit0ed24bc67fe5ac9cc5e01d68c0959fcdfccc96aa (patch)
treedf2625fe615dc5fe324eaddc3417451289d2ae6e /sysdeps/generic/init-first.c
parent44ad8377fb7f62dedf950ddf6fe653943367a5d5 (diff)
downloadglibc-0ed24bc67fe5ac9cc5e01d68c0959fcdfccc96aa.tar.gz
glibc-0ed24bc67fe5ac9cc5e01d68c0959fcdfccc96aa.tar.xz
glibc-0ed24bc67fe5ac9cc5e01d68c0959fcdfccc96aa.zip
Update.
	* sysdeps/arm/init-first.c: Likewise.
	* sysdeps/generic/init-first.c: Likewise.
	* sysdeps/i386/init-first.c: Likewise.
	* sysdeps/sh/init-first.c: Likewise.
Diffstat (limited to 'sysdeps/generic/init-first.c')
-rw-r--r--sysdeps/generic/init-first.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/sysdeps/generic/init-first.c b/sysdeps/generic/init-first.c
index e633ccdff5..5ae1e157f7 100644
--- a/sysdeps/generic/init-first.c
+++ b/sysdeps/generic/init-first.c
@@ -1,5 +1,5 @@
 /* Initialization code run first thing by the ELF startup code.  Stub version.
-   Copyright (C) 1995, 1997, 1998 Free Software Foundation, Inc.
+   Copyright (C) 1995, 1997, 1998, 2001 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -23,7 +23,9 @@
 int __libc_multiple_libcs = 1;
 
 extern void __libc_init (int, char **, char **);
+#ifdef USE_NONOPTION_FLAGS
 extern void __getopt_clean_environment (char **);
+#endif
 
 #ifdef SHARED
 void
@@ -48,6 +50,8 @@ void __libc_init_first
   __environ = envp;
   __libc_init (argc, argv, envp);
 
+#ifdef USE_NONOPTION_FLAGS
   /* This is a hack to make the special getopt in GNU libc working.  */
   __getopt_clean_environment (envp);
+#endif
 }