summaryrefslogtreecommitdiffstats
path: root/stat.h
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2018-11-08 08:18:12 -0400
committerTavian Barnes <tavianator@tavianator.com>2018-11-08 08:18:12 -0400
commit4b60aafc1185164cf48a0627bc3b092c6a79b3bc (patch)
treebe3e50c2283607da7e0360eb2c9f4d3e61f54b90 /stat.h
parent5cbf11475b9135c30f1da76268dbb3b27df55cd6 (diff)
downloadbfs-4b60aafc1185164cf48a0627bc3b092c6a79b3bc.tar.xz
Check for <sys/param.h> before including it
Fixes #38.
Diffstat (limited to 'stat.h')
-rw-r--r--stat.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/stat.h b/stat.h
index 2519ff3..dc24cb4 100644
--- a/stat.h
+++ b/stat.h
@@ -17,11 +17,15 @@
#ifndef BFS_STAT_H
#define BFS_STAT_H
-#include <sys/param.h>
+#include "util.h"
#include <sys/types.h>
#include <sys/stat.h>
#include <time.h>
+#if BFS_HAS_SYS_PARAM
+# include <sys/param.h>
+#endif
+
/**
* bfs_stat field bitmask.
*/