diff options
author | Nick Mathewson <nickm@torproject.org> | 2004-11-02 19:25:52 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2004-11-02 19:25:52 +0000 |
commit | 67f14032b18b7b46a56bd32ccb88923588603164 (patch) | |
tree | e226b607d34b77df664416b3ee2d123ecf4e88d1 /src/common/compat.h | |
parent | 509c0bdc22c5c36b8f6048e9beef852875de85d2 (diff) | |
download | tor-67f14032b18b7b46a56bd32ccb88923588603164.tar tor-67f14032b18b7b46a56bd32ccb88923588603164.tar.gz |
Handle strlcat/strlcpy correctly on platforms that have them.
svn:r2647
Diffstat (limited to 'src/common/compat.h')
-rw-r--r-- | src/common/compat.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/common/compat.h b/src/common/compat.h index 50acd4244..707a349f0 100644 --- a/src/common/compat.h +++ b/src/common/compat.h @@ -55,6 +55,12 @@ #define strncasecmp strnicmp #define strcasecmp stricmp #endif +#ifndef HAVE_STRLCAT +size_t strlcat(char *dst, const char *src, size_t siz); +#endif +#ifndef HAVE_STRLCPY +size_t strlcpy(char *dst, const char *src, size_t siz); +#endif int tor_snprintf(char *str, size_t size, const char *format, ...) CHECK_PRINTF(3,4); |