Added support for BSD variants

This commit is contained in:
wiire 2015-10-15 13:53:04 +02:00
parent 221c0130b6
commit 08a78c3c27

View File

@ -28,11 +28,17 @@
#include <unistd.h>
/* #include <errno.h> */
#ifdef __MACH__
#if defined(__unix__) || (defined(__APPLE__) && defined(__MACH__))
# include <sys/param.h>
# if defined(__APPLE__) && defined(__MACH__)
# include "../include/features.h"
# elif(BSD)
/* BSD (DragonFly BSD, FreeBSD, OpenBSD, NetBSD)
Nothing to include */
# else
# include <features.h>
#endif /* __MACH__ */
# endif
#endif
#include "random_r.h"