summaryrefslogtreecommitdiff
path: root/libc/stdlib/bsd_getpt.c
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2008-06-07 14:51:43 +0000
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2008-06-07 14:51:43 +0000
commit40d3b0ed787a638ef96f016f9050fb64d5c90117 (patch)
tree3d69fc4fa92d03894a71f5dc42a1400e80986d91 /libc/stdlib/bsd_getpt.c
parentf196b7926dfc8a8935096dd2dbc0fb7d0d556eed (diff)
- revert incorrect parts of r22257 and 22259
since posix_openpt lives in getpt.c it has to stay there unconditionally.
Diffstat (limited to 'libc/stdlib/bsd_getpt.c')
-rw-r--r--libc/stdlib/bsd_getpt.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libc/stdlib/bsd_getpt.c b/libc/stdlib/bsd_getpt.c
index 9b93448bc..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)
/* 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 */