summaryrefslogtreecommitdiff
path: root/posix/getopt1.c
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2002-08-06 21:10:50 +0000
committerRoland McGrath <roland@gnu.org>2002-08-06 21:10:50 +0000
commite78f615d52703ec18f773e3778d0dbfc6aa3be35 (patch)
tree23805eaedbb7027869acf401a80fd534162e44a3 /posix/getopt1.c
parent1ab62b326e22ee3c9ab8b8b4144953698bc82cff (diff)
downloadglibc-e78f615d52703ec18f773e3778d0dbfc6aa3be35.tar.gz
* include/getopt.h: But private decls inside [_GETOPT_H].
Use libc_hidden_proto for getopt_long, getopt_long_only. * posix/getopt1.c [_LIBC]: Include <getopt.h> instead of "getopt.h". Add libc_hidden_def. * sysdeps/generic/unwind-dw2-fde-glibc.c [_LIBC] (dl_iterate_phdr): Define as a macro for __dl_iterate_phdr. * inet/getnetgrent_r.c (internal_setnetgrent): Renamed from __ name, made static. Add __ name as a strong alias. (internal_endnetgrent): Likewise. (internal_getnetgrent_r): Likewise.
Diffstat (limited to 'posix/getopt1.c')
-rw-r--r--posix/getopt1.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/posix/getopt1.c b/posix/getopt1.c
index 22a7efbdd1..ad06cc7f9e 100644
--- a/posix/getopt1.c
+++ b/posix/getopt1.c
@@ -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. */