summaryrefslogtreecommitdiffstats
path: root/stat.c
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2020-11-18 09:04:15 -0500
committerTavian Barnes <tavianator@tavianator.com>2020-11-18 09:04:15 -0500
commit457fcee54828527ee2a6819cac2b51892b673069 (patch)
tree7f4e03226ff8955fc3989cf7cd6862047353e1ba /stat.c
parent0a2852c4cd8a8fb95b4a3ba84d768c774186adc1 (diff)
downloadbfs-457fcee54828527ee2a6819cac2b51892b673069.tar.xz
stat: #include <unistd.h> for syscall() when needed
Diffstat (limited to 'stat.c')
-rw-r--r--stat.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/stat.c b/stat.c
index 91cf765..fbbb002 100644
--- a/stat.c
+++ b/stat.c
@@ -29,6 +29,7 @@
#elif __linux__
# include <linux/stat.h>
# include <sys/syscall.h>
+# include <unistd.h>
#endif
#if HAVE_STATX || defined(__NR_statx)