]> granicus.if.org Git - sudo/commitdiff
Add strdup and strndup and fix strsignal
authorTodd C. Miller <Todd.Miller@courtesan.com>
Sat, 13 Mar 2010 14:30:22 +0000 (09:30 -0500)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Sat, 13 Mar 2010 14:30:22 +0000 (09:30 -0500)
include/missing.h

index 7f276d72ba802ec77f6804e59a76ebba43c68632..4f725cb75dfdd1e8036248b8ad92c4809c7a21a7 100644 (file)
@@ -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 */