Update porting.h to fix build errors on macOS 14 / Xcode 15

This commit is contained in:
superfloh247 2023-12-16 12:52:07 +01:00 committed by GitHub
parent 128ed87dd8
commit 16c22477c2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -89,6 +89,9 @@ with this program; if not, write to the Free Software Foundation, Inc.,
#ifndef _WIN32 // POSIX
#include <sys/time.h>
#include <ctime>
#if defined(__MACH__) && defined(__APPLE__)
#include <TargetConditionals.h>
#endif
#endif
namespace porting