--- embedaddon/sudo/compat/mktemp.c 2012/02/21 16:23:02 1.1 +++ embedaddon/sudo/compat/mktemp.c 2014/06/15 16:12:54 1.1.1.3 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2001, 2003, 2004, 2008-2011 + * Copyright (c) 2001, 2003, 2004, 2008-2011, 2013 * Todd C. Miller * * Permission to use, copy, modify, and distribute this software for any @@ -17,6 +17,8 @@ #include +#if !defined(HAVE_MKSTEMPS) || !defined(HAVE_MKDTEMP) + #include #include #include @@ -32,7 +34,7 @@ #ifdef HAVE_UNISTD_H # include #endif /* HAVE_UNISTD_H */ -#if TIME_WITH_SYS_TIME +#ifdef TIME_WITH_SYS_TIME # include #endif @@ -157,3 +159,4 @@ mkdtemp(char *path) return path; } #endif /* HAVE_MKDTEMP */ +#endif /* !HAVE_MKSTEMPS || !HAVE_MKDTEMP */