summaryrefslogtreecommitdiffstats
path: root/make/glx-CustomCCode.c
diff options
context:
space:
mode:
Diffstat (limited to 'make/glx-CustomCCode.c')
-rwxr-xr-xmake/glx-CustomCCode.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/make/glx-CustomCCode.c b/make/glx-CustomCCode.c
index 791927604..3b9130662 100755
--- a/make/glx-CustomCCode.c
+++ b/make/glx-CustomCCode.c
@@ -10,7 +10,7 @@
/* Current versions of Solaris don't expose the XF86 extensions,
although with the recent transition to Xorg this will probably
happen in an upcoming release */
-#ifndef __sun
+#if !defined(__sun) && !defined(_HPUX)
#include <X11/extensions/xf86vmode.h>
#else
/* Need to provide stubs for these */
@@ -42,6 +42,11 @@ Bool XF86VidModeSetGammaRamp(
}
#endif
+/* HP-UX doesn't define RTLD_DEFAULT. */
+#if defined(_HPUX) && !defined(RTLD_DEFAULT)
+#define RTLD_DEFAULT NULL
+#endif
+
/* Need to expose DefaultScreen and RootWindow macros to Java */
JNIEXPORT jlong JNICALL
Java_com_sun_opengl_impl_x11_GLX_DefaultScreen(JNIEnv *env, jclass _unused, jlong display) {