X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=compat%2Fnanosleep.c;h=6b8b388c3878c70e260680b26b878a6157741246;hb=e8db7f6eea9b35527ddd4532affabd18a30549b5;hp=23e3b9e16011cebe316c850a0f1632d3559a002d;hpb=98b9fd63cd28a3636a7cd24641b8f497eaadcd50;p=debian%2Fsudo diff --git a/compat/nanosleep.c b/compat/nanosleep.c index 23e3b9e..6b8b388 100644 --- a/compat/nanosleep.c +++ b/compat/nanosleep.c @@ -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 *rts) } return rval; } +#endif /* HAVE_NANOSLEEP */