aboutsummaryrefslogtreecommitdiff
path: root/src/fstabinfo
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2023-01-29 04:17:30 +0000
committerWilliam Hubbs <w.d.hubbs@gmail.com>2023-01-29 11:32:22 -0600
commit7cfe93d0323a393ca12e72a31d97f6f8e317ddff (patch)
treeef4275ad776329f7e224965a80c9316d37ec4470 /src/fstabinfo
parent893df75e30f834f8fb781940ee5f891068b81dd3 (diff)
fstabinfo: missing includes from IWYU
Diffstat (limited to 'src/fstabinfo')
-rw-r--r--src/fstabinfo/fstabinfo.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/fstabinfo/fstabinfo.c b/src/fstabinfo/fstabinfo.c
index 839e6e36..36d4d27c 100644
--- a/src/fstabinfo/fstabinfo.c
+++ b/src/fstabinfo/fstabinfo.c
@@ -16,13 +16,13 @@
*/
#include <sys/wait.h>
-
#include <errno.h>
#include <getopt.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
+#include <stdbool.h>
/* Yay for linux and its non liking of POSIX functions.
Okay, we could use getfsent but the man page says use getmntent instead
@@ -30,6 +30,7 @@
#ifdef __linux__
# define HAVE_GETMNTENT
# include <mntent.h>
+
# define ENT mntent
# define START_ENT fp = setmntent ("/etc/fstab", "r");
# define GET_ENT getmntent (fp)
@@ -43,6 +44,7 @@
#else
# define HAVE_GETFSENT
# include <fstab.h>
+
# define ENT fstab
# define START_ENT
# define GET_ENT getfsent ()
@@ -58,8 +60,8 @@
#include "einfo.h"
#include "queue.h"
#include "rc.h"
-#include "misc.h"
#include "_usage.h"
+#include "helpers.h"
const char *applet = NULL;
const char *extraopts = NULL;