summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2008-06-07 14:29:19 +0000
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2008-06-07 14:29:19 +0000
commitf196b7926dfc8a8935096dd2dbc0fb7d0d556eed (patch)
treeb8abb01500fac07a169041157efe59bbdc8a6b5a
parent8dec9e26aa8e5c92d87e57f745eef74810d088f9 (diff)
- remove __USE_BSD guard from __bsd_getpt().
Fixes compilation error for defined UCLIBC_HAS_PTY && !defined UNIX98PTY_ONLY which need both __libc_ptyname1 and __libc_ptyname2 for ptsname_r().
-rw-r--r--libc/stdlib/bsd_getpt.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/libc/stdlib/bsd_getpt.c b/libc/stdlib/bsd_getpt.c
index 5f0f63f7a..9b93448bc 100644
--- a/libc/stdlib/bsd_getpt.c
+++ b/libc/stdlib/bsd_getpt.c
@@ -22,7 +22,6 @@
#include <string.h>
#include <unistd.h>
-#if defined __USE_BSD
libc_hidden_proto(open)
/* Experimentally off - libc_hidden_proto(mempcpy) */
@@ -77,4 +76,3 @@ __getpt (void)
__set_errno (ENOENT);
return -1;
}
-#endif