summaryrefslogtreecommitdiff
path: root/libc/stdlib/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/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/getpt.c')
-rw-r--r--libc/stdlib/getpt.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libc/stdlib/getpt.c b/libc/stdlib/getpt.c
index 950664509..1b5de7c16 100644
--- a/libc/stdlib/getpt.c
+++ b/libc/stdlib/getpt.c
@@ -45,7 +45,7 @@ libc_hidden_proto(close)
/* Directory containing the UNIX98 pseudo terminals. */
#define _PATH_DEVPTS _PATH_DEV "pts"
-#if !defined __UNIX98PTY_ONLY__
+#if !defined __UNIX98PTY_ONLY__ && defined __UCLIBC_HAS_GETPT__
/* Prototype for function that opens BSD-style master pseudo-terminals. */
extern int __bsd_getpt (void) attribute_hidden;
#endif
@@ -106,6 +106,8 @@ posix_openpt (int flags)
}
return -1;
}
+#undef have_no_dev_ptmx
+#undef devpts_mounted
#if defined __USE_GNU && defined __UCLIBC_HAS_GETPT__
int