Xorg.wrap: Use <drm.h> instead of hardcoding libdrm include path
authorGuillem Jover <guillem@hadrons.org>
Mon, 14 Apr 2014 16:13:23 +0000 (18:13 +0200)
committerHans de Goede <hdegoede@redhat.com>
Fri, 18 Apr 2014 09:40:01 +0000 (11:40 +0200)
The libdrm.pc file gives us the correct include path, do not try to
hardcode it on the source, as it might vary on the installed system,
for example on Debian-based systems it's under /user/include/libdrm/.

Signed-off-by: Guillem Jover <guillem@hadrons.org>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
hw/xfree86/xorg-wrapper.c

index 90c8c11..80889e8 100644 (file)
@@ -35,7 +35,7 @@
 #include <sys/stat.h>
 #include <sys/types.h>
 #include <unistd.h>
-#include <drm/drm.h>
+#include <drm.h>
 #include <xf86drm.h> /* For DRM_DEV_NAME */
 
 #define CONFIG_FILE SYSCONFDIR "/X11/Xwrapper.config"