From: Michel Dänzer Date: Mon, 17 Aug 2015 09:41:11 +0000 (+0900) Subject: tests/amdgpu: Include config.h first X-Git-Tag: libdrm-2.4.64~12 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=25784d3af2f37d86fb25ee6cfa4afa6f3448af9b;p=platform%2Fupstream%2Flibdrm.git tests/amdgpu: Include config.h first Fixes build failure on 32-bit because _FILE_OFFSET_BITS wasn't defined to 64. Reviewed-by: Christian König --- diff --git a/tests/amdgpu/amdgpu_test.c b/tests/amdgpu/amdgpu_test.c index ed27e24..6568990 100644 --- a/tests/amdgpu/amdgpu_test.c +++ b/tests/amdgpu/amdgpu_test.c @@ -20,6 +20,11 @@ * OTHER DEALINGS IN THE SOFTWARE. * */ + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + #include #include #include diff --git a/tests/amdgpu/basic_tests.c b/tests/amdgpu/basic_tests.c index 44c6e4d..7874039 100644 --- a/tests/amdgpu/basic_tests.c +++ b/tests/amdgpu/basic_tests.c @@ -20,6 +20,11 @@ * OTHER DEALINGS IN THE SOFTWARE. * */ + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + #include #include #include diff --git a/tests/amdgpu/bo_tests.c b/tests/amdgpu/bo_tests.c index e4040d6..993895d 100644 --- a/tests/amdgpu/bo_tests.c +++ b/tests/amdgpu/bo_tests.c @@ -20,6 +20,11 @@ * OTHER DEALINGS IN THE SOFTWARE. * */ + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + #include #include "CUnit/Basic.h" diff --git a/tests/amdgpu/cs_tests.c b/tests/amdgpu/cs_tests.c index faceb83..416f36b 100644 --- a/tests/amdgpu/cs_tests.c +++ b/tests/amdgpu/cs_tests.c @@ -20,6 +20,11 @@ * OTHER DEALINGS IN THE SOFTWARE. * */ + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + #include #include "CUnit/Basic.h" diff --git a/tests/amdgpu/vce_tests.c b/tests/amdgpu/vce_tests.c index b549392..0542654 100644 --- a/tests/amdgpu/vce_tests.c +++ b/tests/amdgpu/vce_tests.c @@ -21,6 +21,10 @@ * */ +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + #include #include