Annotation of ports/graphics/simgear/patches/patch-simgear_screen_extensions_cxx, Revision 1.2
1.1 yason 1: $OpenBSD$
1.2 ! yason 2: --- simgear/screen/extensions.cxx.orig Tue Mar 2 18:16:02 2010
! 3: +++ simgear/screen/extensions.cxx Tue Mar 2 18:16:49 2010
! 4: @@ -121,7 +121,7 @@ void *SGGetGLProcAddress(const char *func) {
! 5: libHandle = dlopen(NULL, RTLD_LAZY);
! 6:
! 7: if (!libHandle) {
! 8: -#if defined (__FreeBSD__)
! 9: +#if defined (__FreeBSD__) || defined (__OpenBSD__)
! 10: const char *error = dlerror();
! 11: #else
! 12: char *error = dlerror();
! 13: @@ -145,7 +145,7 @@ void *SGGetGLProcAddress(const char *func) {
! 14: } else if (libHandle != NULL) {
1.1 yason 15: fptr = dlsym(libHandle, func);
16:
17: -#if defined (__FreeBSD__)
1.2 ! yason 18: +#if defined (__FreeBSD__) || defined (__OpenBSD__)
1.1 yason 19: const char *error = dlerror();
20: #else
21: char *error = dlerror();
CVSweb