backends: ensure unistd.h is included when compiling for apple OSes

This commit is contained in:
John Törnblom 2024-11-23 13:11:19 +01:00
parent 9700eb6baf
commit e87bcfb906

View file

@ -29,7 +29,7 @@
#include "../../common/header/shared.h"
#if defined(__linux) || defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__sun)
#if defined(__linux) || defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__sun) || defined(__APPLE__)
#include <unistd.h> // readlink(), amongst others
#endif