summaryrefslogtreecommitdiffstats
path: root/libc/stdlib/bsd_getpt.c
diff options
context:
space:
mode:
authorCarmelo Amoroso <carmelo.amoroso@st.com>2008-07-09 16:47:01 +0000
committerCarmelo Amoroso <carmelo.amoroso@st.com>2008-07-09 16:47:01 +0000
commit62a21af8006ab04282fdc354c5b4dc765f56d058 (patch)
tree568761d58289238aa14cced3f0010809d4d28c00 /libc/stdlib/bsd_getpt.c
parentef250238dc1572caf859c2b64652f9cdfb0d9e42 (diff)
downloaduClibc-alpine-62a21af8006ab04282fdc354c5b4dc765f56d058.tar.bz2
uClibc-alpine-62a21af8006ab04282fdc354c5b4dc765f56d058.tar.xz
BIG BIG commit: all left files merged from trunk [rev 22714]. Currenntly NPTL sh4 port build and work fine. All committed to allow Khem Ray working on a working branch to integrate the ARM nptl port. MIPS nptl port not tested but should still building and working fine. There are some other part non yet merged with trunk (misc/internals and some headers file that need some more work). Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
Diffstat (limited to 'libc/stdlib/bsd_getpt.c')
-rw-r--r--libc/stdlib/bsd_getpt.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libc/stdlib/bsd_getpt.c b/libc/stdlib/bsd_getpt.c
index 9b885c4e5..1afd57f47 100644
--- a/libc/stdlib/bsd_getpt.c
+++ b/libc/stdlib/bsd_getpt.c
@@ -22,13 +22,13 @@
#include <string.h>
#include <unistd.h>
+#if defined __USE_BSD
libc_hidden_proto(open)
-libc_hidden_proto(mempcpy)
+/* Experimentally off - libc_hidden_proto(mempcpy) */
/* Prefix for master pseudo terminal nodes. */
#define _PATH_PTY "/dev/pty"
-
/* Letters indicating a series of pseudo terminals. */
#ifndef PTYNAME1
#define PTYNAME1 "pqrsPQRS"
@@ -41,7 +41,6 @@ const char __libc_ptyname1[] attribute_hidden = PTYNAME1;
#endif
const char __libc_ptyname2[] attribute_hidden = PTYNAME2;
-
/* Open a master pseudo terminal and return its file descriptor. */
int
__getpt (void)
@@ -76,3 +75,4 @@ __getpt (void)
__set_errno (ENOENT);
return -1;
}
+#endif /* __USE_BSD */