[systemd-devel] [RFC 14/25] shared/missing.h: check for missing __compar_fn_t typedef
Emil Renner Berthing
systemd at esmil.dk
Thu Sep 18 06:24:50 PDT 2014
---
src/shared/missing.h | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/src/shared/missing.h b/src/shared/missing.h
index 55e61f6..be099c5 100644
--- a/src/shared/missing.h
+++ b/src/shared/missing.h
@@ -147,6 +147,11 @@ static inline char *canonicalize_file_name(const char *path) {
})
#endif
+#ifndef __COMPAR_FN_T
+#define __COMPAR_FN_T
+typedef int (*__compar_fn_t)(const void *, const void *);
+#endif
+
#ifdef __x86_64__
# ifndef __NR_fanotify_init
# define __NR_fanotify_init 300
--
2.1.0
More information about the systemd-devel
mailing list