You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/app-arch/p7zip/files/p7zip-15.14-darwin.patch

26 lines
598 B

Darwin has wchar_h and wctypes_h.
El Capitan needs <sys/types.h> for ino_t.
--- CPP/myWindows/config.h
+++ CPP/myWindows/config.h
@@ -5,7 +5,7 @@
#define FILESYSTEM_IS_CASE_SENSITIVE 1
#endif
- #if !defined(ENV_MACOSX) && !defined(ENV_BEOS)
+ #if !defined(ENV_BEOS)
/* <wchar.h> */
/* ENV_HAVE_WCHAR__H and not ENV_HAVE_WCHAR_H to avoid warning with wxWidgets */
--- CPP/myWindows/StdAfx.h
+++ CPP/myWindows/StdAfx.h
@@ -32,7 +32,7 @@
#include <errno.h>
#include <math.h>
-#ifdef __NETWARE__
+#if defined(__NETWARE__) || defined(__MACH__)
#include <sys/types.h>
#endif