diff --git a/src/env_universal_common.cpp b/src/env_universal_common.cpp index eeefa1e3c..ee6669cd0 100644 --- a/src/env_universal_common.cpp +++ b/src/env_universal_common.cpp @@ -45,6 +45,11 @@ #include #endif +#ifdef __HAIKU__ +#define _BSD_SOURCE +#include +#endif //Haiku + // 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 // seems a reasonable choice.