MacOSX doesn't define HOST_NAME_MAX in unistd.h, which made freeglut fail to
[freeglut] / src / x11 / fg_window_x11.c
index ae97b12..90f1966 100644 (file)
 #include "x11/fg_window_x11_glx.h"
 #endif
 
+#ifndef HOST_NAME_MAX
+#define HOST_NAME_MAX  255
+#endif
+
 /* Motif window hints, only define needed ones */
 typedef struct
 {