summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2002-08-31 16:54:45 +0000
committerJim Meyering <jim@meyering.net>2002-08-31 16:54:45 +0000
commita5f8422570d681f2df0a672e4bd428124a2a9de7 (patch)
tree36aecc159d9e1e408cffae1a796030b406df17f6 /lib
parent5bdb1226ebefd92e295e5cd47d0484b6f890dbea (diff)
downloadcoreutils-a5f8422570d681f2df0a672e4bd428124a2a9de7.tar.xz
Update from GNU libc.
Diffstat (limited to 'lib')
-rw-r--r--lib/getopt1.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/lib/getopt1.c b/lib/getopt1.c
index 22a7efbdd..8ea9984bf 100644
--- a/lib/getopt1.c
+++ b/lib/getopt1.c
@@ -1,5 +1,5 @@
/* getopt_long and getopt_long_only entry points for GNU getopt.
- Copyright (C) 1987,88,89,90,91,92,93,94,96,97,98
+ Copyright (C) 1987,88,89,90,91,92,93,94,96,97,98, 02
Free Software Foundation, Inc.
This file is part of the GNU C Library.
@@ -22,7 +22,11 @@
#include <config.h>
#endif
-#include "getopt.h"
+#ifdef _LIBC
+# include <getopt.h>
+#else
+# include "getopt.h"
+#endif
#if !defined __STDC__ || !__STDC__
/* This is a separate conditional since some stdc systems
@@ -90,6 +94,10 @@ getopt_long_only (argc, argv, options, long_options, opt_index)
return _getopt_internal (argc, argv, options, long_options, opt_index, 1);
}
+# ifdef _LIBC
+libc_hidden_def (getopt_long)
+libc_hidden_def (getopt_long_only)
+# endif
#endif /* Not ELIDE_CODE. */