summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVíctor Manuel Jáquez Leal <vjaquez@igalia.com>2019-05-06 14:52:36 +0200
committerXiang, Haihao <haihao.xiang@intel.com>2019-05-09 16:32:56 +0800
commit7b859a9b143fb9ea73b3b84950665bfa280a9372 (patch)
tree21b6e639b489f61e7dd0bb04c4e5e33ee1b1328f
parentdc3473d19453430c0366f117f391a35336f13dc8 (diff)
downloadlibva-intel-driver-7b859a9b143fb9ea73b3b84950665bfa280a9372.tar.gz
Fix compilation warnings.
In commit f6573cb7 memmem() call is introduced which is a GNU extension, which need to be enabled explicitely, otherwise the compiler will trigger a warning. This patch enables globally the usage of GNU extensions.
-rw-r--r--src/sysdeps.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/sysdeps.h b/src/sysdeps.h
index ba8bd5fd..f4d83c10 100644
--- a/src/sysdeps.h
+++ b/src/sysdeps.h
@@ -37,10 +37,12 @@
#endif /* ANDROID */
+#define _GNU_SOURCE 1
+#include <string.h>
+
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
-#include <string.h>
#include <stdint.h>
#include <assert.h>