--- embedaddon/sudo/compat/nanosleep.c 2012/02/21 16:23:02 1.1.1.1 +++ embedaddon/sudo/compat/nanosleep.c 2013/07/22 10:46:11 1.1.1.3 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2009-2011 Todd C. Miller + * Copyright (c) 2009-2011, 2013 Todd C. Miller * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above @@ -16,6 +16,8 @@ #include +#ifndef HAVE_NANOSLEEP + #include #include #ifdef HAVE_SYS_SELECT_H @@ -24,7 +26,7 @@ #if TIME_WITH_SYS_TIME # include #endif -#ifndef HAVE_TIMESPEC +#ifndef HAVE_STRUCT_TIMESPEC # include "compat/timespec.h" #endif #include @@ -52,3 +54,4 @@ nanosleep(const struct timespec *ts, struct timespec * } return rval; } +#endif /* HAVE_NANOSLEEP */