Haiku needs _BSD_SOURCE and <bsd/ifaddrs.h>

This commit is contained in:
Zoltán Mizsei 2016-12-24 13:09:34 +01:00 committed by Kurtis Rader
parent 6b536922af
commit 52c7ebe502

View file

@ -45,6 +45,11 @@
#include <notify.h> #include <notify.h>
#endif #endif
#ifdef __HAIKU__
#define _BSD_SOURCE
#include <bsd/ifaddrs.h>
#endif //Haiku
// NAME_MAX is not defined on Solaris and suggests the use of pathconf() // NAME_MAX is not defined on Solaris and suggests the use of pathconf()
// There is no obvious sensible pathconf() for shared memory and _XPG_NAME_MAX // There is no obvious sensible pathconf() for shared memory and _XPG_NAME_MAX
// seems a reasonable choice. // seems a reasonable choice.