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:06:30 +0800
commite9e5a666879457cf297297ae535d38f22c561e22 (patch)
treee9f70554d00a26f7c3becce493251e61fda49a6e
parent5f8060ec5efd1445de3748ff354e023053f28f29 (diff)
downloadlibva-e9e5a666879457cf297297ae535d38f22c561e22.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>