summary refs log tree commit diff
diff options
context:
space:
mode:
authorChristian Neukirchen <chneukirchen@gmail.com>2014-07-31 20:37:03 +0200
committerChristian Neukirchen <chneukirchen@gmail.com>2014-07-31 20:37:03 +0200
commit8ebf0c64fb15b8c4652fb8b3126dddcd1188b01d (patch)
treec7a3c4d412bb5193c47ff41d17f6d40849cbc94e
parent689ec3382af05e66375121c6a0ce930a79f35455 (diff)
downloadoutils-8ebf0c64fb15b8c4652fb8b3126dddcd1188b01d.tar.gz
outils-8ebf0c64fb15b8c4652fb8b3126dddcd1188b01d.tar.xz
outils-8ebf0c64fb15b8c4652fb8b3126dddcd1188b01d.zip
port to musl
-rw-r--r--src/liboutils/include/sys/cdefs.h3
-rw-r--r--src/liboutils/outils.h5
2 files changed, 8 insertions, 0 deletions
diff --git a/src/liboutils/include/sys/cdefs.h b/src/liboutils/include/sys/cdefs.h
new file mode 100644
index 0000000..10550e4
--- /dev/null
+++ b/src/liboutils/include/sys/cdefs.h
@@ -0,0 +1,3 @@
+#ifdef __GLIBC__
+#include_next <sys/cdefs.h>
+#endif
diff --git a/src/liboutils/outils.h b/src/liboutils/outils.h
index 8958f3d..473b0a1 100644
--- a/src/liboutils/outils.h
+++ b/src/liboutils/outils.h
@@ -1,6 +1,11 @@
 #define __weak_alias(new, old) \
         extern __typeof(old) new __attribute__((weak, alias(#old)))
 #define __dead __attribute__((__noreturn__))
+#define __BEGIN_DECLS
+#define __END_DECLS
+
+#define b64_ntop __b64_ntop
+#define b64_pton __b64_pton
 
 #define NOFILE_MAX NOFILE