Browse Source

- remove __USE_BSD guard from __bsd_getpt().
Fixes compilation error for defined UCLIBC_HAS_PTY && !defined UNIX98PTY_ONLY
which need both __libc_ptyname1 and __libc_ptyname2 for ptsname_r().

Bernhard Reutner-Fischer 16 years ago
parent
commit
f196b7926d
1 changed files with 0 additions and 2 deletions
  1. 0 2
      libc/stdlib/bsd_getpt.c

+ 0 - 2
libc/stdlib/bsd_getpt.c

@@ -22,7 +22,6 @@
 #include <string.h>
 #include <unistd.h>
 
-#if defined __USE_BSD
 libc_hidden_proto(open)
 /* Experimentally off - libc_hidden_proto(mempcpy) */
 
@@ -77,4 +76,3 @@ __getpt (void)
   __set_errno (ENOENT);
   return -1;
 }
-#endif