From c11ebe8974309a441ae49ae8116eccb17c61fa5f Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Sat, 11 Apr 2020 00:28:05 -0400 Subject: Include protoypes for compat implementations --- include/CMakeLists.txt | 1 + include/compat.h | 14 ++++++++++++++ include/spm.h | 1 + 3 files changed, 16 insertions(+) create mode 100644 include/compat.h (limited to 'include') diff --git a/include/CMakeLists.txt b/include/CMakeLists.txt index a7a1f72..68ca824 100644 --- a/include/CMakeLists.txt +++ b/include/CMakeLists.txt @@ -3,6 +3,7 @@ install( ${CMAKE_BINARY_DIR}/include/config.h archive.h checksum.h + compat.h conf.h environment.h find.h 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 diff --git a/include/spm.h b/include/spm.h index 895354f..1c2a806 100644 --- a/include/spm.h +++ b/include/spm.h @@ -26,6 +26,7 @@ #include #endif +#include "compat.h" #include "package.h" #include "str.h" #include "strlist.h" -- cgit