INN commit: trunk/lib (memcmp.c)
INN Commit
rra at isc.org
Mon Dec 1 21:21:11 UTC 2014
Date: Monday, December 1, 2014 @ 13:21:11
Author: iulius
Revision: 9756
When testing portability functions, we redefine the function to
a different name to not conflict with system headers. If the
function is implemented by the system as a macro, we have to
undefine it first. This was being done in some places but not in
others, causing compliation problems with inet_aton on FreeBSD.
Do this consistently everywhere.
Modified:
trunk/lib/memcmp.c
----------+
memcmp.c | 1 +
1 file changed, 1 insertion(+)
Modified: memcmp.c
===================================================================
--- memcmp.c 2014-12-01 21:11:29 UTC (rev 9755)
+++ memcmp.c 2014-12-01 21:21:11 UTC (rev 9756)
@@ -16,6 +16,7 @@
/* If we're running the test suite, rename memcmp to avoid conflicts with
the system version. */
#if TESTING
+# undef memcmp
# define memcmp test_memcmp
int test_memcmp(const void *, const void *, size_t);
#endif
More information about the inn-committers
mailing list