diff options
-rw-r--r-- | src/newt/native/gbm.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/newt/native/gbm.c b/src/newt/native/gbm.c index 19efb8d7a..cdb1223f6 100644 --- a/src/newt/native/gbm.c +++ b/src/newt/native/gbm.c @@ -1,3 +1,6 @@ +#include <errno.h> +#include <string.h> + #include "jogamp_newt_driver_gbm_DisplayDriver.h" #include "jogamp_newt_driver_gbm_ScreenDriver.h" #include "jogamp_newt_driver_gbm_WindowDriver.h" @@ -28,7 +31,7 @@ struct drm_fb { * Method: initGbm * Signature: (J)V */ -JNIEXPORT void JNICALL Java_jogamp_newt_driver_gbm_DisplayDriver_initGbm +JNIEXPORT jlong JNICALL Java_jogamp_newt_driver_gbm_DisplayDriver_initGbm (JNIEnv *env, jobject this){ static const char *modules[] = { "i915", "radeon", "nouveau", "vmwgfx", "omapdrm", "exynos", "msm" @@ -141,4 +144,4 @@ JNIEXPORT jlong JNICALL Java_jogamp_newt_driver_gbm_WindowDriver_createSurface return -1; } return gbm.surface; - }
\ No newline at end of file + } |