version 1.1, 2012/02/21 16:23:02
|
version 1.1.1.3, 2013/07/22 10:46:11
|
Line 1
|
Line 1
|
/* |
/* |
* Copyright (c) 2009-2011 Todd C. Miller <Todd.Miller@courtesan.com> | * Copyright (c) 2009-2011, 2013 Todd C. Miller <Todd.Miller@courtesan.com> |
* |
* |
* Permission to use, copy, modify, and distribute this software for any |
* Permission to use, copy, modify, and distribute this software for any |
* purpose with or without fee is hereby granted, provided that the above |
* purpose with or without fee is hereby granted, provided that the above |
Line 16
|
Line 16
|
|
|
#include <config.h> |
#include <config.h> |
|
|
|
#ifndef HAVE_NANOSLEEP |
|
|
#include <sys/types.h> |
#include <sys/types.h> |
#include <sys/time.h> |
#include <sys/time.h> |
#ifdef HAVE_SYS_SELECT_H |
#ifdef HAVE_SYS_SELECT_H |
Line 24
|
Line 26
|
#if TIME_WITH_SYS_TIME |
#if TIME_WITH_SYS_TIME |
# include <time.h> |
# include <time.h> |
#endif |
#endif |
#ifndef HAVE_TIMESPEC | #ifndef HAVE_STRUCT_TIMESPEC |
# include "compat/timespec.h" |
# include "compat/timespec.h" |
#endif |
#endif |
#include <errno.h> |
#include <errno.h> |
Line 52 nanosleep(const struct timespec *ts, struct timespec *
|
Line 54 nanosleep(const struct timespec *ts, struct timespec *
|
} |
} |
return rval; |
return rval; |
} |
} |
|
#endif /* HAVE_NANOSLEEP */ |