macro.h: move definition of MODE_INVALID to parse-util.h
authorLennart Poettering <lennart@poettering.net>
Tue, 27 Oct 2015 00:23:53 +0000 (01:23 +0100)
committerLennart Poettering <lennart@poettering.net>
Tue, 27 Oct 2015 12:25:57 +0000 (13:25 +0100)
src/basic/fs-util.c
src/basic/macro.h
src/basic/parse-util.h

index edb007f..6ad381a 100644 (file)
@@ -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"
index 01916bd..156c16b 100644 (file)
@@ -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)                                         \
index 35b4ba0..72a619c 100644 (file)
@@ -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);