about summary refs log tree commit diff
path: root/sysdeps/unix
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2001-09-22 21:19:47 +0000
committerUlrich Drepper <drepper@redhat.com>2001-09-22 21:19:47 +0000
commit9461da69cccd07de98e7a348537bae313df01b4d (patch)
treeb969f4414ba958882aa6f10e6dd5c6d650364e48 /sysdeps/unix
parent9fb957cdf1609fa140d44656f6854718c4270185 (diff)
downloadglibc-9461da69cccd07de98e7a348537bae313df01b4d.tar.gz
glibc-9461da69cccd07de98e7a348537bae313df01b4d.tar.xz
glibc-9461da69cccd07de98e7a348537bae313df01b4d.zip
(init): Use USE_NONONPTION_FLAG ifdef for __getopt_clean_environment.
Diffstat (limited to 'sysdeps/unix')
-rw-r--r--sysdeps/unix/sysv/aix/init-first.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sysdeps/unix/sysv/aix/init-first.c b/sysdeps/unix/sysv/aix/init-first.c
index 2c8e0b1900..f87e5c875c 100644
--- a/sysdeps/unix/sysv/aix/init-first.c
+++ b/sysdeps/unix/sysv/aix/init-first.c
@@ -56,7 +56,9 @@ char **__libc_argv;
 static void
 init (int argc, char **argv, char **envp)
 {
+#ifdef USE_NONOPTION_FLAGS
   extern void __getopt_clean_environment (char **);
+#endif
   /* The next variable is only here to work around a bug in gcc <= 2.7.2.2.
      If the address would be taken inside the expression the optimizer
      would try to be too smart and throws it away.  Grrr.  */
@@ -77,8 +79,10 @@ init (int argc, char **argv, char **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
 
 #ifdef SHARED
   __libc_global_ctors ();