gethostname() is more a BSD feature than an XOPEN one.
PR: 379
This commit is contained in:
parent
afdec73ca5
commit
a0ed612fef
@ -109,7 +109,7 @@
|
||||
*
|
||||
*/
|
||||
|
||||
#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).
|
||||
|
Loading…
x
Reference in New Issue
Block a user