summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarek Szyprowski <m.szyprowski@samsung.com>2016-08-04 12:28:53 +0200
committerJoonyoung Shim <jy0922.shim@samsung.com>2017-02-15 13:37:34 +0900
commit746f616c60229083423cdff7389368a02978510a (patch)
tree500621ae026003e30c37566217b8d56033b7b39c
parent0a57d961e0244a388ba7f6dc0e173af495d19a4b (diff)
downloadlibdrm-746f616c60229083423cdff7389368a02978510a.tar.gz
libdrm-746f616c60229083423cdff7389368a02978510a.tar.bz2
libdrm-746f616c60229083423cdff7389368a02978510a.zip
tests/exynos: fix support for running under 64bit kernel
Without config.h off_t type is 32bit, what causes problem with mmap() on GEM buffers while running on 64bit kernel. libdrm configure script already sets _FILE_OFFSET_BITS to 64, so all libdrm tools can use 64bit file system interface functions. Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com> Change-Id: I45e5931b76ebb65b3d854c7609821351ead09f92
-rw-r--r--tests/ipptest/fimc.c4
-rw-r--r--tests/ipptest/gem.c4
-rw-r--r--tests/ipptest/util.c4
-rw-r--r--tests/rottest/gem.c4
-rw-r--r--tests/rottest/rotator.c4
-rw-r--r--tests/rottest/util.c4
6 files changed, 24 insertions, 0 deletions
diff --git a/tests/ipptest/fimc.c b/tests/ipptest/fimc.c
index a511e744..2eac01f6 100644
--- a/tests/ipptest/fimc.c
+++ b/tests/ipptest/fimc.c
@@ -22,6 +22,10 @@
* IN THE SOFTWARE.
*/
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
diff --git a/tests/ipptest/gem.c b/tests/ipptest/gem.c
index 8aec83b6..69f2168c 100644
--- a/tests/ipptest/gem.c
+++ b/tests/ipptest/gem.c
@@ -22,6 +22,10 @@
* IN THE SOFTWARE.
*/
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
diff --git a/tests/ipptest/util.c b/tests/ipptest/util.c
index 20498a26..cde93dc0 100644
--- a/tests/ipptest/util.c
+++ b/tests/ipptest/util.c
@@ -22,6 +22,10 @@
* IN THE SOFTWARE.
*/
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
diff --git a/tests/rottest/gem.c b/tests/rottest/gem.c
index ad38fb89..69c5a8cf 100644
--- a/tests/rottest/gem.c
+++ b/tests/rottest/gem.c
@@ -22,6 +22,10 @@
* IN THE SOFTWARE.
*/
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
diff --git a/tests/rottest/rotator.c b/tests/rottest/rotator.c
index 83cf892f..e925bcab 100644
--- a/tests/rottest/rotator.c
+++ b/tests/rottest/rotator.c
@@ -22,6 +22,10 @@
* IN THE SOFTWARE.
*/
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
diff --git a/tests/rottest/util.c b/tests/rottest/util.c
index e7435bf0..3456278a 100644
--- a/tests/rottest/util.c
+++ b/tests/rottest/util.c
@@ -22,6 +22,10 @@
* IN THE SOFTWARE.
*/
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>