aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/mountinfo.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/mountinfo.c b/src/mountinfo.c
index 76fec3bf..0461ee13 100644
--- a/src/mountinfo.c
+++ b/src/mountinfo.c
@@ -7,25 +7,23 @@
#define APPLET "mountinfo"
+#include <sys/types.h>
+
#if defined(__DragonFly__) || defined(__FreeBSD__) || \
defined(__NetBSD__) || defined(__OpenBSD__)
#define BSD
-
-#include <sys/types.h>
#include <sys/param.h>
#include <sys/ucred.h>
#include <sys/mount.h>
-#elif defined(__linux__)
-#include <limits.h>
#endif
#include <errno.h>
#include <getopt.h>
#include <limits.h>
-#include <regex.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
+#include <regex.h>
#include "builtins.h"
#include "einfo.h"