diff options
author | Joseph Hunkeler <jhunkeler@users.noreply.github.com> | 2020-04-14 01:32:02 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-14 01:32:02 -0400 |
commit | 92ac08d5fa49b10d64148e5a6920c7ce787683b6 (patch) | |
tree | 60cd7103db07faa41305af78ab25c77da73e25ac | |
parent | b266c1a943c3aee2d3aea05141fb2f21f9ea168b (diff) | |
parent | c11ebe8974309a441ae49ae8116eccb17c61fa5f (diff) | |
download | spmc-92ac08d5fa49b10d64148e5a6920c7ce787683b6.tar.gz |
Merge pull request #22 from jhunkeler/use-compat
Include protoypes for compat implementations
-rw-r--r-- | include/CMakeLists.txt | 1 | ||||
-rw-r--r-- | include/compat.h | 14 | ||||
-rw-r--r-- | include/spm.h | 1 |
3 files changed, 16 insertions, 0 deletions
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 93f1947..5931a94 100644 --- a/include/spm.h +++ b/include/spm.h @@ -27,6 +27,7 @@ #include <utime.h> #endif +#include "compat.h" #include "package.h" #include "str.h" #include "strlist.h" |