MacOSX doesn't define HOST_NAME_MAX in unistd.h, which made freeglut fail to
build. Now, if the definition is missing, we'll just define it arbitrarilly as 255, which should be a safe value. This is just needed for an obscure X11 WM protocol. git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@1746 7f0cb862-5218-0410-a997-914c9d46530a
This commit is contained in:
parent
db2ea877b0
commit
310764e238
@ -40,6 +40,10 @@
|
|||||||
#include "x11/fg_window_x11_glx.h"
|
#include "x11/fg_window_x11_glx.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef HOST_NAME_MAX
|
||||||
|
#define HOST_NAME_MAX 255
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Motif window hints, only define needed ones */
|
/* Motif window hints, only define needed ones */
|
||||||
typedef struct
|
typedef struct
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user