From 40d3b0ed787a638ef96f016f9050fb64d5c90117 Mon Sep 17 00:00:00 2001 From: Bernhard Reutner-Fischer Date: Sat, 7 Jun 2008 14:51:43 +0000 Subject: - revert incorrect parts of r22257 and 22259 since posix_openpt lives in getpt.c it has to stay there unconditionally. --- libc/stdlib/getpt.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'libc/stdlib/getpt.c') 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 -- cgit v1.2.3