summaryrefslogtreecommitdiff
path: root/src/basic
diff options
context:
space:
mode:
Diffstat (limited to 'src/basic')
-rw-r--r--src/basic/fs-util.c1
-rw-r--r--src/basic/macro.h2
-rw-r--r--src/basic/parse-util.h2
3 files changed, 3 insertions, 2 deletions
diff --git a/src/basic/fs-util.c b/src/basic/fs-util.c
index edb007f98c..6ad381afb4 100644
--- a/src/basic/fs-util.c
+++ b/src/basic/fs-util.c
@@ -24,6 +24,7 @@
#include "fileio.h"
#include "fs-util.h"
#include "mkdir.h"
+#include "parse-util.h"
#include "path-util.h"
#include "string-util.h"
#include "strv.h"
diff --git a/src/basic/macro.h b/src/basic/macro.h
index 01916bd788..156c16b1c3 100644
--- a/src/basic/macro.h
+++ b/src/basic/macro.h
@@ -427,8 +427,6 @@ do { \
#endif
#endif
-#define MODE_INVALID ((mode_t) -1)
-
#define DEFINE_TRIVIAL_CLEANUP_FUNC(type, func) \
static inline void func##p(type *p) { \
if (*p) \
diff --git a/src/basic/parse-util.h b/src/basic/parse-util.h
index 35b4ba030c..72a619c38f 100644
--- a/src/basic/parse-util.h
+++ b/src/basic/parse-util.h
@@ -26,6 +26,8 @@
#include "macro.h"
+#define MODE_INVALID ((mode_t) -1)
+
int parse_boolean(const char *v) _pure_;
int parse_pid(const char *s, pid_t* ret_pid);
int parse_mode(const char *s, mode_t *ret);