]> git.ipfire.org Git - thirdparty/rsync.git/commitdiff
Avoid strdup redefinition warning.
authorWayne Davison <wayne@opencoder.net>
Tue, 30 Jun 2020 15:27:20 +0000 (08:27 -0700)
committerWayne Davison <wayne@opencoder.net>
Tue, 30 Jun 2020 15:27:20 +0000 (08:27 -0700)
rsync.h

diff --git a/rsync.h b/rsync.h
index d54eb39946a1003ab6e18584ddb634e09da0f75c..2668d670ed40bac33f5bae8d7d31adc4cf4d233d 100644 (file)
--- a/rsync.h
+++ b/rsync.h
@@ -1277,6 +1277,7 @@ extern char *do_malloc;
 #define new_array0(type, num) ((type*)my_alloc(NULL, (num), sizeof (type), __FILE__, __LINE__))
 #define realloc_array(ptr, type, num) ((type*)my_alloc((ptr), (num), sizeof (type), __FILE__, __LINE__))
 
+#undef strdup
 #define strdup(s) my_strdup(s, __FILE__, __LINE__)
 
 /* use magic gcc attributes to catch format errors */