OSDN Git Service

malloc: fix race condition and other bugs in the no-mmu malloc
[uclinux-h8/uClibc.git] / libc / stdlib / bsd_getpt.c
index 9b885c4..e704e23 100644 (file)
 #include <string.h>
 #include <unistd.h>
 
-libc_hidden_proto(open)
-libc_hidden_proto(mempcpy)
+#if defined __USE_BSD
 
 /* Prefix for master pseudo terminal nodes.  */
 #define _PATH_PTY "/dev/pty"
 
-
 /* Letters indicating a series of pseudo terminals.  */
 #ifndef PTYNAME1
 #define PTYNAME1 "pqrsPQRS"
@@ -41,7 +39,6 @@ const char __libc_ptyname1[] attribute_hidden = PTYNAME1;
 #endif
 const char __libc_ptyname2[] attribute_hidden = PTYNAME2;
 
-
 /* Open a master pseudo terminal and return its file descriptor.  */
 int
 __getpt (void)
@@ -76,3 +73,4 @@ __getpt (void)
   __set_errno (ENOENT);
   return -1;
 }
+#endif /* __USE_BSD */