diff options
author | Gwenole Beauchesne <gbeauchesne@splitted-desktop.com> | 2009-07-08 07:46:31 +0000 |
---|---|---|
committer | Austin Yuan <shengquan.yuan@intel.com> | 2009-07-08 17:06:30 +0800 |
commit | e9e5a666879457cf297297ae535d38f22c561e22 (patch) | |
tree | e9f70554d00a26f7c3becce493251e61fda49a6e | |
parent | 5f8060ec5efd1445de3748ff354e023053f28f29 (diff) | |
download | libva-e9e5a666879457cf297297ae535d38f22c561e22.tar.gz |
Fix includes.
Signed-off-by: Austin Yuan <shengquan.yuan@intel.com>
-rw-r--r-- | src/va.c | 1 | ||||
-rw-r--r-- | src/x11/dri2_util.c | 3 | ||||
-rw-r--r-- | src/x11/va_x11.c | 2 |
3 files changed, 5 insertions, 1 deletions
@@ -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> |