summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGwenole Beauchesne <gbeauchesne@splitted-desktop.com>2009-07-08 07:46:31 +0000
committerAustin Yuan <shengquan.yuan@intel.com>2009-07-08 17:42:05 +0800
commita81ff887616933a465c9239e0e2e67c063cd96ad (patch)
tree87889ee62468a7ad47f2092f362bcfba97016689
parentf5b058c0d22f2cc0458c19f2c24b5d6ed233d2e3 (diff)
downloadlibva-a81ff887616933a465c9239e0e2e67c063cd96ad.tar.gz
Fix includes.
Signed-off-by: Austin Yuan <shengquan.yuan@intel.com>
-rw-r--r--src/va.c1
-rw-r--r--src/x11/dri2_util.c3
-rw-r--r--src/x11/va_x11.c2
3 files changed, 5 insertions, 1 deletions
diff --git a/src/va.c b/src/va.c
index de2d2d8..3c07386 100644
--- a/src/va.c
+++ b/src/va.c
@@ -22,6 +22,7 @@
* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
+#define _GNU_SOURCE 1
#include "va.h"
#include "va_backend.h"
diff --git a/src/x11/dri2_util.c b/src/x11/dri2_util.c
index 1d3c141..ebe7a2c 100644
--- a/src/x11/dri2_util.c
+++ b/src/x11/dri2_util.c
@@ -5,7 +5,8 @@
#include <xf86drm.h>
-#include "X11/Xlib.h"
+#include <X11/Xlibint.h>
+#include <X11/Xlib.h>
#include "va.h"
#include "va_backend.h"
diff --git a/src/x11/va_x11.c b/src/x11/va_x11.c
index 4cb8fcd..1e53401 100644
--- a/src/x11/va_x11.c
+++ b/src/x11/va_x11.c
@@ -22,6 +22,7 @@
* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
+#define _GNU_SOURCE 1
#include "config.h"
#include "va.h"
#include "va_backend.h"
@@ -32,6 +33,7 @@
#include <stdio.h>
#include <stdarg.h>
#include <string.h>
+#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>