chiark / gitweb /
musl_missing.h: add FTW_* macros missing from musl libc.
authormaxice8 <thinkabit.ukim@gmail.com>
Fri, 27 Apr 2018 13:05:25 +0000 (10:05 -0300)
committerSven Eden <yamakuzure@gmx.net>
Fri, 27 Apr 2018 15:11:58 +0000 (17:11 +0200)
src/shared/musl_missing.h

index d42f03c34038317065c445a7501e004bc14c6923..15f5f8473d9cd580d51f804aaa664080827d9398 100644 (file)
@@ -107,6 +107,27 @@ typedef __compar_fn_t comparison_fn_t;
  */
 #define __register_atfork(prepare,parent,child,dso) pthread_atfork(prepare,parent,child)
 
+/* 
+ * Missing FTW macros in musl, define them if not defined
+ * taken from
+ * https://git.yoctoproject.org/cgit.cgi/poky/plain/meta/recipes-core/systemd/systemd/0028-add-missing-FTW_-macros-for-musl.patch
+ */
+#ifndef FTW_ACTIONRETVAL
+#define FTW_ACTIONRETVAL 16
+#endif
+
+#ifndef FTW_CONTINUE
+#define FTW_CONTINUE 0
+#endif
+
+#ifndef FTW_STOP
+#define FTW_STOP 1
+#endif
+
+#ifndef FTW_SKIP_SUBTREE
+#define FTW_SKIP_SUBTREE 2
+#endif
+
 #endif // !defined(__GLIBC__)
 
 #endif // ELOGIND_BASIC_MUSL_MISSING_H_INCLUDED