diff options
-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> |