diff options
author | Wayne Davison <wayne@opencoder.net> | 2020-06-30 08:27:20 -0700 |
---|---|---|
committer | Wayne Davison <wayne@opencoder.net> | 2020-06-30 08:27:20 -0700 |
commit | 7a413c972246250a8fc8302548489c031de3b0c1 (patch) | |
tree | e86c58a904f87adad87e616c8760cd87fa5d751c | |
parent | 5be7363297f202cf8e0ae83cf1e7e75f59ba203d (diff) | |
download | rsync-7a413c972246250a8fc8302548489c031de3b0c1.tar.gz |
Avoid strdup redefinition warning.
-rw-r--r-- | rsync.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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 */ |