Skip to content

Commit b4550f9

Browse files
authored
FreeBSD include fix (#97)
FreeBSD has HAVE_SYSCONF defined, but you still need to include sysctl.h.
1 parent 482c219 commit b4550f9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libpsl-native/src/getuserfrompid.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
#include <sstream>
1212
#include <errno.h>
1313

14-
#if __APPLE__
14+
#if __APPLE__ || __FreeBSD__
1515
#include <sys/sysctl.h>
1616
#elif HAVE_SYSCONF
1717
// do nothing

0 commit comments

Comments
 (0)