summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/stdlib.h1
-rw-r--r--libc/stdlib/getpt.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/include/stdlib.h b/include/stdlib.h
index b5ab9c9d1..b87dfd921 100644
--- a/include/stdlib.h
+++ b/include/stdlib.h
@@ -814,6 +814,7 @@ extern void setkey (__const char *__key) __THROW __nonnull ((1));
#ifdef __USE_XOPEN2K
/* Return a master pseudo-terminal handle. */
extern int posix_openpt (int __oflag) __wur;
+libc_hidden_proto(posix_openpt)
#endif
#ifdef __USE_XOPEN
diff --git a/libc/stdlib/getpt.c b/libc/stdlib/getpt.c
index b07fde6fe..3033a13aa 100644
--- a/libc/stdlib/getpt.c
+++ b/libc/stdlib/getpt.c
@@ -105,6 +105,7 @@ posix_openpt (int flags)
}
return -1;
}
+libc_hidden_def(posix_openpt)
#undef have_no_dev_ptmx
#undef devpts_mounted