explicitely ignore return value of symlink(3) call
[project/procd.git] / libc-compat.h
diff --git a/libc-compat.h b/libc-compat.h
new file mode 100644 (file)
index 0000000..9435346
--- /dev/null
@@ -0,0 +1,10 @@
+#ifndef __PROCD_LIBC_COMPAT_H
+#define __PROCD_LIBC_COMPAT_H
+
+#if defined(__GLIBC__) && !defined(__UCLIBC__)
+static inline int ignore(int x) {return x;}
+#else
+#define ignore(x) x
+#endif
+
+#endif