libports: fix eglgears example
Thanks to Jamey Sharp for the fix! Fixes #1670
This commit is contained in:
parent
759b9ed1ad
commit
650267b425
|
@ -1,4 +1,4 @@
|
||||||
build {
|
set build_components {
|
||||||
core init
|
core init
|
||||||
drivers/timer
|
drivers/timer
|
||||||
server/nitpicker server/nit_fb
|
server/nitpicker server/nit_fb
|
||||||
|
@ -9,6 +9,9 @@ build {
|
||||||
}
|
}
|
||||||
|
|
||||||
source ${genode_dir}/repos/base/run/platform_drv.inc
|
source ${genode_dir}/repos/base/run/platform_drv.inc
|
||||||
|
append_platform_drv_build_components
|
||||||
|
|
||||||
|
build $build_components
|
||||||
|
|
||||||
create_boot_directory
|
create_boot_directory
|
||||||
|
|
||||||
|
|
|
@ -467,8 +467,10 @@ class Display : public native_display
|
||||||
_get_connectors(struct native_display *ndpy,
|
_get_connectors(struct native_display *ndpy,
|
||||||
int *num_connectors, int *num_crtcs)
|
int *num_connectors, int *num_crtcs)
|
||||||
{
|
{
|
||||||
static struct native_connector conn;
|
static native_connector conn;
|
||||||
static const struct native_connector *conn_list[1] = { &conn };
|
const native_connector **conn_list =
|
||||||
|
(const native_connector **)malloc(sizeof(native_connector **));
|
||||||
|
conn_list[0] = &conn;
|
||||||
printf("called, return 1 connector\n");
|
printf("called, return 1 connector\n");
|
||||||
|
|
||||||
if (num_connectors) *num_connectors = 1;
|
if (num_connectors) *num_connectors = 1;
|
||||||
|
|
Loading…
Reference in New Issue