diff options
author | Ariadne Conill <ariadne@dereferenced.org> | 2021-12-29 11:36:14 -0600 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2021-12-29 20:14:41 +0200 |
commit | 6344a0eedbc0bc21b537b51e7cddc13a7ddc5bf3 (patch) | |
tree | 12ff1517e702d4aa7b26b572cbcaa93134c23b7d | |
parent | de15d4adbbe1da8baf1415610d23767264bca151 (diff) | |
download | apk-tools-6344a0eedbc0bc21b537b51e7cddc13a7ddc5bf3.tar.gz apk-tools-6344a0eedbc0bc21b537b51e7cddc13a7ddc5bf3.tar.bz2 apk-tools-6344a0eedbc0bc21b537b51e7cddc13a7ddc5bf3.tar.xz apk-tools-6344a0eedbc0bc21b537b51e7cddc13a7ddc5bf3.zip |
database: isolate linux-specific mountpoint headers
-rw-r--r-- | src/database.c | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/src/database.c b/src/database.c index 0295adc..a3ea3a1 100644 --- a/src/database.c +++ b/src/database.c @@ -10,7 +10,6 @@ #include <errno.h> #include <stdio.h> #include <fcntl.h> -#include <mntent.h> #include <libgen.h> #include <limits.h> #include <unistd.h> @@ -18,13 +17,17 @@ #include <stdlib.h> #include <signal.h> #include <fnmatch.h> -#include <sys/vfs.h> #include <sys/file.h> #include <sys/wait.h> #include <sys/stat.h> -#include <sys/mount.h> -#include <sys/statvfs.h> -#include <linux/magic.h> + +#ifdef __linux__ +# include <mntent.h> +# include <sys/vfs.h> +# include <sys/mount.h> +# include <sys/statvfs.h> +# include <linux/magic.h> +#endif #include "apk_defines.h" #include "apk_package.h" |