From 67c19f70b5b15639882bb0d3cf64a4e1208ec2cd Mon Sep 17 00:00:00 2001 From: Kenneth Russel Date: Thu, 13 Apr 2006 22:39:27 +0000 Subject: Support for building on HP/UX from user metasim on JOGL forum git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/trunk@713 232f8b59-042b-4e1e-8c03-345bb8c30851 --- make/glx-CustomCCode.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'make/glx-CustomCCode.c') 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 #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) { -- cgit v1.2.3