blob: 68f783ebe4f66ffadb5561389564cbf2ee725329 [file] [log] [blame]
Patrick Williams03907ee2022-05-01 06:28:52 -05001From a8ea135125b284a8a9c965d8091b3d1d9a31849c Mon Sep 17 00:00:00 2001
2From: Alexander Kanavin <alex@linutronix.de>
3Date: Tue, 5 Apr 2022 16:51:34 +0200
4Subject: [PATCH] CMakeLists.txt: add missing endian.h check
5
6This is needed to actually have HAVE_ENDIAN_H defined properly in config.h.
7
8Upstream-Status: Submitted [https://gitlab.freedesktop.org/mesa/piglit/-/merge_requests/648]
9Signed-off-by: Alexander Kanavin <alex@linutronix.de>
10---
11 CMakeLists.txt | 1 +
12 1 file changed, 1 insertion(+)
13
14diff --git a/CMakeLists.txt b/CMakeLists.txt
15index 9fb0508da..158fac4bc 100644
16--- a/CMakeLists.txt
17+++ b/CMakeLists.txt
18@@ -481,6 +481,7 @@ check_include_file(sys/stat.h HAVE_SYS_STAT_H)
19 check_include_file(unistd.h HAVE_UNISTD_H)
20 check_include_file(fcntl.h HAVE_FCNTL_H)
21 check_include_file(linux/sync_file.h HAVE_LINUX_SYNC_FILE_H)
22+check_include_file(endian.h HAVE_ENDIAN_H)
23
24 if(DEFINED PIGLIT_INSTALL_VERSION)
25 set(PIGLIT_INSTALL_VERSION_SUFFIX