aboutsummaryrefslogtreecommitdiffstats
path: root/src/newt/native
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2019-11-21 03:50:52 +0100
committerSven Gothel <[email protected]>2019-11-21 03:50:52 +0100
commite1161a3773a35fdb7d94eb5263b1ab9a85e565fb (patch)
treea81ae928668285fd3a3a1721e97ee5f9606069d7 /src/newt/native
parentdf599b1c9b08da7335b2c6036c1c9f308ec56387 (diff)
Bug 1156: EGL-GBM: Cherry pick changes ..
Diffstat (limited to 'src/newt/native')
-rw-r--r--src/newt/native/gbm.c7
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
+ }