vcpkg/ports/nvtt/001-define-value-for-HAVE_UNISTD_H-in-mac-os.patch
JackBoosY 5bbba1c92b [nvtt]Upgrade version to 2.1.1 and fix build error on windows. (#6765)
* [nvtt]Upgrade version to 2.1.1 and fix build error on windows.

* [nvtt]Fix build error on OSX.

* [nvtt]Merge two patches.

* [nvtt]Re-trigger CI system.

* [nvtt]Fix build error on OSX.
2019-06-17 16:36:07 -07:00

17 lines
376 B
Diff

diff --git a/src/nvconfig.h.in b/src/nvconfig.h.in
index 16da646..ada6be0 100644
--- a/src/nvconfig.h.in
+++ b/src/nvconfig.h.in
@@ -1,7 +1,11 @@
#ifndef NV_CONFIG
#define NV_CONFIG
+#if NV_OS_DARWIN & !NV_OS_IOS
+#cmakedefine01 HAVE_UNISTD_H
+#else
#cmakedefine HAVE_UNISTD_H
+#endif
#cmakedefine HAVE_STDARG_H
#cmakedefine HAVE_SIGNAL_H
#cmakedefine HAVE_EXECINFO_H