summaryrefslogtreecommitdiff
path: root/rsync.h
diff options
context:
space:
mode:
authorWayne Davison <wayne@opencoder.net>2022-06-19 10:02:51 -0700
committerWayne Davison <wayne@opencoder.net>2022-06-19 10:11:28 -0700
commit3592ac3c025da23b2dd291561ec6113940b9c11b (patch)
treed46fa2282ac1acceb3d5db367a99e661b5f68782 /rsync.h
parentc897b16f3231b2c22110b3792ec63c4b269d57d6 (diff)
downloadrsync-3592ac3c025da23b2dd291561ec6113940b9c11b.tar.gz
Include bsd/strings.h if it exists
Some systems apparently put strlcpy() into a separate bsd/strings.h file without putting the function into a separate library. Thus, configure finds that the function exists for linking but the build does not have the declaration (which rsync only supplies if it is also supplying its own version of the function).
Diffstat (limited to 'rsync.h')
-rw-r--r--rsync.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/rsync.h b/rsync.h
index e5aacd25..1cc037c5 100644
--- a/rsync.h
+++ b/rsync.h
@@ -338,6 +338,9 @@ enum delret {
# endif
# include <string.h>
#endif
+#ifdef HAVE_BSD_STRING_H
+# include <bsd/string.h>
+#endif
#ifdef HAVE_STRINGS_H
# include <strings.h>
#endif