diff options
author | Kenneth Russel <[email protected]> | 2006-04-13 22:39:27 +0000 |
---|---|---|
committer | Kenneth Russel <[email protected]> | 2006-04-13 22:39:27 +0000 |
commit | 67c19f70b5b15639882bb0d3cf64a4e1208ec2cd (patch) | |
tree | 9c9d87c666178f7f58ed88dd3d2672f43bb64954 /make/glx-CustomCCode.c | |
parent | 491499a5de8d471684c5a96b10bd51982ec33f5f (diff) |
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
Diffstat (limited to 'make/glx-CustomCCode.c')
-rwxr-xr-x | make/glx-CustomCCode.c | 7 |
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) { |