diff options
author | qwell <qwell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2009-03-02 20:16:51 +0000 |
---|---|---|
committer | qwell <qwell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2009-03-02 20:16:51 +0000 |
commit | 1b3a252266b5f30dcc3fc5b3c9d084b2b9e1cf85 (patch) | |
tree | 334930e2e0bf6273c5c2e896e386152270a650d7 /main/editline/sys.h | |
parent | 6628131bf660a242358ddaad96904704241b0d00 (diff) |
Merged revisions 179395 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r179395 | qwell | 2009-03-02 14:14:57 -0600 (Mon, 02 Mar 2009) | 1 line
Remove several silly warnings in editline. One about a broken preprocessor directive, and another about strlcpy/strlcat.
(closes issue #14264)
Reported by: dimas
........
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@179396 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main/editline/sys.h')
-rw-r--r-- | main/editline/sys.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/main/editline/sys.h b/main/editline/sys.h index 87ecc899c..cb2389de2 100644 --- a/main/editline/sys.h +++ b/main/editline/sys.h @@ -74,6 +74,16 @@ typedef void *ioctl_t; char *fgetln(FILE *fp, size_t *len); #endif +#ifndef HAVE_STRLCPY +#define strlcpy libedit_strlcpy +size_t strlcpy(char *dst, const char *src, size_t siz); +#endif + +#ifndef HAVE_STRLCAT +#define strlcat libedit_strlcat +size_t strlcat(char *dst, const char *src, size_t siz); +#endif + #define REGEX /* Use POSIX.2 regular expression functions */ #undef REGEXP /* Use UNIX V8 regular expression functions */ |