--- embedaddon/sudo/compat/nanosleep.c 2012/05/29 12:26:49 1.1.1.2 +++ 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 @@ -52,3 +54,4 @@ nanosleep(const struct timespec *ts, struct timespec * } return rval; } +#endif /* HAVE_NANOSLEEP */