From fc598f8e12d7e87e5e2b0a3339fa72bac6ae1cd0 Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Sat, 13 Mar 2010 09:30:22 -0500 Subject: [PATCH] Add strdup and strndup and fix strsignal --- include/missing.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/include/missing.h b/include/missing.h index 7f276d72b..4f725cb75 100644 --- a/include/missing.h +++ b/include/missing.h @@ -73,8 +73,14 @@ int setenv(const char *, const char *, int); #ifndef HAVE_UNSETENV int unsetenv(const char *); #endif -#ifdef HAVE_SYS_SIGLIST +#if defined(HAVE_DECL_SYS_SIGLIST) || defined(HAVE_DECL__SYS_SIGLIST) || defined(HAVE_DECL___SYS_SIGLIST) char *strsignal(int); #endif +#ifndef HAVE_STRDUP +char *strdup(const char *); +#endif +#ifndef HAVE_STRNDUP +char *strndup(const char *, size_t); +#endif #endif /* _SUDO_MISSING_H */ -- 2.50.1