diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2000-03-29 18:58:20 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2000-03-29 18:58:20 +0000 |
commit | 1e860ab7289ec6c2314c53a8b88b69a75b9d25b8 (patch) | |
tree | 93298cbf2d5f8ff261af563102328855f57914b8 /xmalloc.c | |
parent | 5e3493241e91fb0a31dd46669d4dfb5bb3b70332 (diff) | |
download | fetchmail-1e860ab7289ec6c2314c53a8b88b69a75b9d25b8.tar.gz fetchmail-1e860ab7289ec6c2314c53a8b88b69a75b9d25b8.tar.bz2 fetchmail-1e860ab7289ec6c2314c53a8b88b69a75b9d25b8.zip |
Ultrix 4.5 port changes.
svn path=/trunk/; revision=2841
Diffstat (limited to 'xmalloc.c')
-rw-r--r-- | xmalloc.c | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -57,4 +57,14 @@ char *xstrdup(const char *s) return p; } +#if !defined(HAVE_STRDUP) +char *strdup(const char *s) +{ + char *p; + p = (char *) malloc(strlen(s)+1); + strcpy(p,s); + return p; +} +#endif /* !HAVE_STRDUP */ + /* xmalloc.c ends here */ |