aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKenneth Russel <[email protected]>2006-04-13 22:39:27 +0000
committerKenneth Russel <[email protected]>2006-04-13 22:39:27 +0000
commit67c19f70b5b15639882bb0d3cf64a4e1208ec2cd (patch)
tree9c9d87c666178f7f58ed88dd3d2672f43bb64954 /src
parent491499a5de8d471684c5a96b10bd51982ec33f5f (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 'src')
-rw-r--r--src/native/jogl/InternalBufferUtils.c10
-rw-r--r--src/native/jogl/JAWT_DrawingSurfaceInfo.c2
2 files changed, 9 insertions, 3 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 */
diff --git a/src/native/jogl/JAWT_DrawingSurfaceInfo.c b/src/native/jogl/JAWT_DrawingSurfaceInfo.c
index ae5c3f935..2bbfc7932 100644
--- a/src/native/jogl/JAWT_DrawingSurfaceInfo.c
+++ b/src/native/jogl/JAWT_DrawingSurfaceInfo.c
@@ -42,7 +42,7 @@
#ifdef WIN32
#define PLATFORM_DSI_SIZE sizeof(JAWT_Win32DrawingSurfaceInfo)
static const char* platformDSIClassName = "com/sun/opengl/impl/windows/JAWT_Win32DrawingSurfaceInfo";
-#elif defined(linux) || defined(__sun) || defined(__FreeBSD__)
+#elif defined(linux) || defined(__sun) || defined(__FreeBSD__) || defined(_HPUX)
#define PLATFORM_DSI_SIZE sizeof(JAWT_X11DrawingSurfaceInfo)
static const char* platformDSIClassName = "com/sun/opengl/impl/x11/JAWT_X11DrawingSurfaceInfo";
#elif defined(macosx)