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 8dbfc5b8e56c4d81ff1037c2a87bebd7d865eb09..8cfcef968eda0e32ac5e38f6f3052859fd3f37cc 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 0b47837e1b5394ba6251e747e39ae4aec3487a5c..8945117276e83698e95bb45615ae7ac14b68e698 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,