diff options
Diffstat (limited to 'src/native/jogl/InternalBufferUtils.c')
-rw-r--r-- | src/native/jogl/InternalBufferUtils.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/native/jogl/InternalBufferUtils.c b/src/native/jogl/InternalBufferUtils.c index aced365b7..bb1a5580a 100644 --- a/src/native/jogl/InternalBufferUtils.c +++ b/src/native/jogl/InternalBufferUtils.c @@ -53,11 +53,17 @@ Java_com_sun_opengl_impl_InternalBufferUtils_newDirectByteBuffer(JNIEnv* env, jc return (*env)->NewDirectByteBuffer(env, (void*) (intptr_t) address, capacity); } -#ifdef __sun +#if defined(__sun) || defined(_HPUX) #include <dlfcn.h> + +/* HP-UX doesn't define RTLD_DEFAULT. */ +#if defined(_HPUX) && !defined(RTLD_DEFAULT) +#define RTLD_DEFAULT NULL +#endif + /* Sun's GLX implementation doesn't have glXGetProcAddressARB (or glXGetProcAddress) so we implement it here */ void (*glXGetProcAddressARB(const char *procname))() { return (void (*)()) dlsym(RTLD_DEFAULT, procname); } -#endif /* __ sun */ +#endif /* __ sun || _HPUX */ |