commit 752be7c0f776b49ee188a1f0b3c11de67d4cb39d
Author: FRIGN <[email protected]>
Date:   Wed Mar 11 17:06:52 2015 +0100

    Undef reallocarray in util.h before declaration
    
    In case we link against the OpenBSD-libc, we want to avoid collisions.

diff --git a/util.h b/util.h
index 7370272..c400a50 100644
--- a/util.h
+++ b/util.h
@@ -26,6 +26,7 @@ void apathmax(char **, size_t *);
 void *ecalloc(size_t, size_t);
 void *emalloc(size_t);
 void *erealloc(void *, size_t);
+#undef reallocarray
 void *reallocarray(void *, size_t, size_t);
 void *ereallocarray(void *, size_t, size_t);
 char *estrdup(const char *);

Reply via email to