Commit 62ef6b0d authored by Vinson Lee's avatar Vinson Lee

cmake: Set a value for each portability define.

Fix macOS 10.13 build error with HAVE_UNISTD_H having no value.

In file included from tests/util/piglit-util-cl.c:26:
In file included from tests/util/piglit-util-cl.h:29:
In file included from tests/util/piglit-util-cl-enum.h:34:
In file included from /System/Library/Frameworks/OpenCL.framework/Headers/opencl.h:16:
In file included from /System/Library/Frameworks/OpenCL.framework/Headers/gcl.h:23:
/usr/include/dispatch/dispatch.h:38:45: error: expected value in expression
#if !defined(HAVE_UNISTD_H) || HAVE_UNISTD_H
                                            ^
Signed-off-by: Vinson Lee's avatarVinson Lee <vlee@freedesktop.org>
parent 3ba0657b
#cmakedefine HAVE_ASPRINTF
#cmakedefine HAVE_FFS
#cmakedefine HAVE_STRCHRNUL
#cmakedefine HAVE_FOPEN_S
#cmakedefine HAVE_SETRLIMIT
#cmakedefine HAVE_STRNDUP
#cmakedefine HAVE_ASPRINTF 1
#cmakedefine HAVE_FFS 1
#cmakedefine HAVE_STRCHRNUL 1
#cmakedefine HAVE_FOPEN_S 1
#cmakedefine HAVE_SETRLIMIT 1
#cmakedefine HAVE_STRNDUP 1
#cmakedefine HAVE_FCNTL_H
#cmakedefine HAVE_SYS_STAT_H
#cmakedefine HAVE_SYS_TYPES_H
#cmakedefine HAVE_SYS_TIME_H
#cmakedefine HAVE_SYS_RESOURCE_H
#cmakedefine HAVE_UNISTD_H
#cmakedefine HAVE_FCNTL_H 1
#cmakedefine HAVE_SYS_STAT_H 1
#cmakedefine HAVE_SYS_TYPES_H 1
#cmakedefine HAVE_SYS_TIME_H 1
#cmakedefine HAVE_SYS_RESOURCE_H 1
#cmakedefine HAVE_UNISTD_H 1
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment