projects
/
freeglut
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
474138a
)
MacOSX doesn't define HOST_NAME_MAX in unistd.h, which made freeglut fail to
author
John Tsiombikas
<nuclear@member.fsf.org>
Wed, 18 Feb 2015 05:03:16 +0000
(
05:03
+0000)
committer
John Tsiombikas
<nuclear@member.fsf.org>
Wed, 18 Feb 2015 05:03:16 +0000
(
05:03
+0000)
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: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@1746
7f0cb862
-5218-0410-a997-
914c9d46530a
src/x11/fg_window_x11.c
patch
|
blob
|
history
diff --git
a/src/x11/fg_window_x11.c
b/src/x11/fg_window_x11.c
index
ae97b12
..
90f1966
100644
(file)
--- a/
src/x11/fg_window_x11.c
+++ b/
src/x11/fg_window_x11.c
@@
-40,6
+40,10
@@
#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
{