OSDN Git Service

st/egl: Fix build for include files in nonstandard places
authorThomas Hellstrom <thellstrom@vmware.com>
Mon, 1 Nov 2010 16:12:39 +0000 (17:12 +0100)
committerThomas Hellstrom <thellstrom@vmware.com>
Tue, 9 Nov 2010 11:31:24 +0000 (12:31 +0100)
Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
src/gallium/state_trackers/egl/Makefile
src/gallium/state_trackers/egl/x11/native_x11.h

index 8dbfc5b..8cfcef9 100644 (file)
@@ -17,7 +17,7 @@ x11_INCLUDES = \
        -I$(TOP)/src/mapi \
        -I$(TOP)/src/mesa \
        $(X11_CFLAGS) \
-       $(shell pkg-config --cflags-only-I libdrm)
+       $(shell pkg-config --cflags-only-I libdrm dri2proto)
 
 x11_SOURCES = $(wildcard x11/*.c) \
              $(TOP)/src/glx/dri2.c
index 0b47837..8945117 100644 (file)
@@ -27,6 +27,7 @@
 #define _NATIVE_X11_H_
 
 #include "common/native.h"
+#include <X11/Xlib.h>
 
 struct native_display *
 x11_create_ximage_display(Display *dpy,