feat: compatiblity with Mac OS X

This commit is contained in:
Kévin Dunglas 2022-09-22 15:53:38 +02:00
parent b259a6e29a
commit 2ea22f1271
No known key found for this signature in database
GPG Key ID: 4D04EBEF06AAF3A6
1 changed files with 6 additions and 0 deletions

View File

@ -8,7 +8,13 @@
*
********************************/
#if defined(__APPLE__)
#include <AvailabilityMacros.h>
#else
#ifndef _POSIX_C_SOURCE
#define _POSIX_C_SOURCE 200809L
#endif
#endif
#include <unistd.h>
#include <signal.h>
#include <stdio.h>