diff options
author | Marek Szyprowski <m.szyprowski@samsung.com> | 2016-08-04 12:28:53 +0200 |
---|---|---|
committer | Seung-Woo Kim <sw0312.kim@samsung.com> | 2018-02-26 10:21:48 +0900 |
commit | 97f59230c426f813beac47aa6a00f66f7544df14 (patch) | |
tree | 87afb6eb44aff7d6c9a1b99509e31c6f5f456d41 | |
parent | 36821c6a80a3d95735cc3962b451b1b8c99d8bae (diff) | |
download | libdrm-97f59230c426f813beac47aa6a00f66f7544df14.tar.gz libdrm-97f59230c426f813beac47aa6a00f66f7544df14.tar.bz2 libdrm-97f59230c426f813beac47aa6a00f66f7544df14.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.c | 4 | ||||
-rw-r--r-- | tests/ipptest/gem.c | 4 | ||||
-rw-r--r-- | tests/ipptest/util.c | 4 | ||||
-rw-r--r-- | tests/rottest/gem.c | 4 | ||||
-rw-r--r-- | tests/rottest/rotator.c | 4 | ||||
-rw-r--r-- | tests/rottest/util.c | 4 |
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 5710d6f2..a4501870 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 071d8a69..891e2d06 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> |