Minor tweaks to make OSX and FreeBSD and other BSD variants work.

This commit is contained in:
Dirk-Willem van Gulik
2018-07-11 13:04:13 +02:00
parent fcb1fe0a1f
commit 20fb5173a9
7 changed files with 131 additions and 16 deletions

View File

@@ -1,7 +1,11 @@
#include <stdbool.h>
#include <stdint.h>
#include <sys/types.h>
#if defined(__OpenBSD__) || defined(__NetBSD__) || defined(__DragonFly__) || defined(__APPLE__) || defined(__FreeBSD__)
#include <limits.h>
#else
#include <linux/limits.h>
#endif
#include <ftdi.h>
#include <time.h>