浏览代码

- 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 17 年之前
父节点
当前提交
f196b7926d
共有 1 个文件被更改,包括 0 次插入2 次删除
  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