提交 4fbe40c5 编写于 作者: R Richard Levitte

gethostname() is more a BSD feature than an XOPEN one.

PR: 379
上级 578ca7e4
......@@ -114,7 +114,7 @@
* SUN MICROSYSTEMS, INC., and contributed to the OpenSSL project.
*/
#define _XOPEN_SOURCE 600 /* Or gethostname won't be declared properly
#define _BSD_SOURCE 1 /* Or gethostname won't be declared properly
on Linux and GNU platforms. */
#define _XOPEN_SOURCE_EXTENDED 1 /* Or gethostname won't be declared properly
on Compaq platforms (at least with DEC C).
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册