Merge pull request #46 from snar/freebsd-endian

This commit is contained in:
David Lamparter 2023-04-23 14:10:08 +02:00 committed by GitHub
commit 4a39ec4251
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -15,8 +15,10 @@
#include <stdio.h>
#include <unistd.h>
#if defined(unix) && !defined(__APPLE__)
#if defined(unix) && !defined(__APPLE__) && !defined(__FreeBSD__)
#include <endian.h>
#elif defined(__FreeBSD__)
#include <sys/endian.h>
#endif
/* ssize_t is a POSIX type, not an ISO C one...