Commit 61159d5c authored by Greg Williams's avatar Greg Williams
Browse files

updated unistd.h inclusion to be more aggressive

parent 22bf663a
Loading
Loading
Loading
Loading
+5 −7
Original line number Diff line number Diff line
@@ -52,13 +52,11 @@
#endif

// Define max host name length
#if !defined(__APPLE__) && defined(__unix__)
// Some Linux environments require this, although not all, but it's benign.
#ifndef _BSD_SOURCE
    #define _BSD_SOURCE
#endif // _BSD_SOURCE
#include <unistd.h>
#endif  // __unix__
#ifndef HOST_NAME_MAX
    #define HOST_NAME_MAX 256
#endif // HOST_NAME_MAX