[hackers] [sbase] Undef reallocarray in util.h before declaration || FRIGN

From: <git_AT_suckless.org>
Date: Thu, 12 Mar 2015 00:55:49 +0100 (CET)

commit 752be7c0f776b49ee188a1f0b3c11de67d4cb39d
Author: FRIGN <dev_AT_frign.de>
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
_AT_@ -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 *);
Received on Thu Mar 12 2015 - 00:55:49 CET

This archive was generated by hypermail 2.3.0 : Thu Mar 12 2015 - 01:00:12 CET