From 7a413c972246250a8fc8302548489c031de3b0c1 Mon Sep 17 00:00:00 2001 From: Wayne Davison Date: Tue, 30 Jun 2020 08:27:20 -0700 Subject: Avoid strdup redefinition warning. --- rsync.h | 1 + 1 file changed, 1 insertion(+) (limited to 'rsync.h') diff --git a/rsync.h b/rsync.h index d54eb399..2668d670 100644 --- 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 */ -- cgit v1.2.1