summaryrefslogtreecommitdiff
path: root/posix/getopt_init.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2001-08-11 19:43:52 +0000
committerUlrich Drepper <drepper@redhat.com>2001-08-11 19:43:52 +0000
commit518a0dd201c48a5c15d73c1919c304a9f8f5e3c1 (patch)
treedc2a95634c80e73790f62a806de48c379c954f4b /posix/getopt_init.c
parenta3151b0240882fea0f1b15741b7ef55f181c1cfc (diff)
Update.
2001-08-11 Ulrich Drepper <drepper@redhat.com> * config.h.in: Add #undef line for USE_NONOPTION_FLAGS. * posix/getopt_init.c: Produce code only if USE_NONOPTION_FLAGS is defined. * posix/getopt.c: Use __getopt_nonoption_flags only if USE_NONOPTION_FLAGS is defined. * sysdeps/mach/hurd/i386/init-first.c: Use __getopt_clean_environment only if USE_NONOPTION_FLAGS is defined. * sysdeps/mach/hurd/mips/init-first.c: Likewise. * sysdeps/unix/sysv/linux/init-first.c: Likewise.
Diffstat (limited to 'posix/getopt_init.c')
-rw-r--r--posix/getopt_init.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/posix/getopt_init.c b/posix/getopt_init.c
index dd3d433460..d460098c8a 100644
--- a/posix/getopt_init.c
+++ b/posix/getopt_init.c
@@ -18,6 +18,7 @@
Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
02111-1307 USA. */
+#ifdef USE_NONOPTION_FLAGS
/* Attention: this file is *not* necessary when the GNU getopt functions
are used outside the GNU libc. Some additional functionality of the
getopt functions in GNU libc require this additional work. */
@@ -71,3 +72,4 @@ __getopt_clean_environment (char **env)
/* Continue the loop in case the name appears again. */
}
}
+#endif /* USE_NONOPTION_FLAGS */