summaryrefslogtreecommitdiff
path: root/libc/stdlib/getpt.c
diff options
context:
space:
mode:
Diffstat (limited to 'libc/stdlib/getpt.c')
-rw-r--r--libc/stdlib/getpt.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libc/stdlib/getpt.c b/libc/stdlib/getpt.c
index 9e1f255bb..f4e52f672 100644
--- a/libc/stdlib/getpt.c
+++ b/libc/stdlib/getpt.c
@@ -80,8 +80,10 @@ getpt (void)
/* If /dev/pts is not mounted then the UNIX98 pseudo terminals
are not usable. */
close (fd);
+#if !defined UNIX98PTY_ONLY
have_no_dev_ptmx = 1;
#endif
+#endif
}
else
{