summaryrefslogtreecommitdiff
path: root/libc/stdlib/getpt.c
diff options
context:
space:
mode:
authorPeter S. Mazinger <ps.m@gmx.net>2006-01-20 11:38:31 +0000
committerPeter S. Mazinger <ps.m@gmx.net>2006-01-20 11:38:31 +0000
commit42dfe0465e03b819a3508d653ce6e7cc39b40cff (patch)
treeb51cc30260d9232d208d0cf724d8f883d63258b4 /libc/stdlib/getpt.c
parent46755f4c22f38d503c4dfac90d09e78062ff7f80 (diff)
Correction if UNIX98PTY_ONLY is not enabled
Diffstat (limited to 'libc/stdlib/getpt.c')
-rw-r--r--libc/stdlib/getpt.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/libc/stdlib/getpt.c b/libc/stdlib/getpt.c
index a5fde0fce..7005bee71 100644
--- a/libc/stdlib/getpt.c
+++ b/libc/stdlib/getpt.c
@@ -17,12 +17,16 @@
Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
02111-1307 USA. */
+#define _GNU_SOURCE
#include <errno.h>
#include <fcntl.h>
#include <stdlib.h>
#include <unistd.h>
#include <paths.h>
+libc_hidden_proto(open)
+libc_hidden_proto(close)
+
#if !defined __ASSUME_DEVPTS__
# include <sys/statfs.h>
@@ -42,9 +46,6 @@
extern int __bsd_getpt (void) attribute_hidden;
#endif
-libc_hidden_proto(open)
-libc_hidden_proto(close)
-
/* Open a master pseudo terminal and return its file descriptor. */
int
getpt (void)