aboutsummaryrefslogtreecommitdiff
path: root/include/compat.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/compat.h')
-rw-r--r--include/compat.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/include/compat.h b/include/compat.h
new file mode 100644
index 0000000..b116f2c
--- /dev/null
+++ b/include/compat.h
@@ -0,0 +1,14 @@
+#ifndef SPM_COMPAT_H
+#define SPM_COMPAT_H
+
+#include "config.h"
+
+#ifndef HAVE_STRSEP
+char *strsep(char **sp, char *sep);
+#endif
+
+#ifndef HAVE_REALLOC_ARRAY
+void *reallocarray (void *__ptr, size_t __nmemb, size_t __size);
+#endif
+
+#endif //SPM_COMPAT_H