summaryrefslogtreecommitdiff
path: root/sysutils/squashfs-tools/files/patch-squashfs-tools_unsquashfs.c
blob: 9b4ab4e475b4e0fb1d36d450f35f5a8892bb7fcf (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
$FreeBSD$

--- unsquashfs.c.orig
+++ unsquashfs.c
@@ -31,7 +31,14 @@
 #include "unsquashfs_info.h"
 #include "stdarg.h"
 
+#ifdef __linux__
 #include <sys/sysinfo.h>
+#endif
+
+#ifdef __FreeBSD__
+#include <sys/sysctl.h>
+#endif
+
 #include <sys/types.h>
 #include <sys/time.h>
 #include <sys/resource.h>