Fix build with FreeBSD

This commit is contained in:
pkubaj authored and Michał Janiszewski committed 2018-03-21 14:26:38 +01:00
1 parent 2ea62fe6cf
commit 7adde37f56
1 file changed
+5
+5
View File
@@ -18,6 +18,11 @@
#include <limits.h>
#include <pwd.h>
#if defined(__FreeBSD__)
#include <stddef.h>
#include <sys/types.h>
#include <sys/sysctl.h>
#endif // __FreeBSD__
#if defined(__linux__)
// for PATH_MAX
#include <linux/limits.h>