diff options
author | Colin Watson <cjwatson@debian.org> | 2003-09-01 18:42:19 +0000 |
---|---|---|
committer | Colin Watson <cjwatson@debian.org> | 2003-09-01 18:42:19 +0000 |
commit | 8d6b7f4c46de3feb66f704ab483e51ea1a3bb0e1 (patch) | |
tree | 41fe3dd71501bbec5b0393f1536c925eaee180e9 /openbsd-compat/bsd-misc.h | |
parent | f045c69060bfdd5cf8759a5f29d7008d02e4de5b (diff) | |
parent | 58bfa257481a1c6938ada9bbd38801cc45633fb0 (diff) |
Debian release 3.6p1-1.
Diffstat (limited to 'openbsd-compat/bsd-misc.h')
-rw-r--r-- | openbsd-compat/bsd-misc.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/openbsd-compat/bsd-misc.h b/openbsd-compat/bsd-misc.h index 981196044..78d9ccdd4 100644 --- a/openbsd-compat/bsd-misc.h +++ b/openbsd-compat/bsd-misc.h | |||
@@ -22,7 +22,7 @@ | |||
22 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 22 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
23 | */ | 23 | */ |
24 | 24 | ||
25 | /* $Id: bsd-misc.h,v 1.6 2002/06/13 21:34:58 mouring Exp $ */ | 25 | /* $Id: bsd-misc.h,v 1.7 2003/03/18 18:21:41 tim Exp $ */ |
26 | 26 | ||
27 | #ifndef _BSD_MISC_H | 27 | #ifndef _BSD_MISC_H |
28 | #define _BSD_MISC_H | 28 | #define _BSD_MISC_H |
@@ -80,5 +80,14 @@ int truncate (const char *path, off_t length); | |||
80 | int setgroups(size_t size, const gid_t *list); | 80 | int setgroups(size_t size, const gid_t *list); |
81 | #endif | 81 | #endif |
82 | 82 | ||
83 | #if !defined(HAVE_NANOSLEEP) && !defined(HAVE_NSLEEP) | ||
84 | #ifndef HAVE_STRUCT_TIMESPEC | ||
85 | struct timespec { | ||
86 | time_t tv_sec; | ||
87 | long tv_nsec; | ||
88 | }; | ||
89 | #endif | ||
90 | int nanosleep(const struct timespec *req, struct timespec *rem); | ||
91 | #endif | ||
83 | 92 | ||
84 | #endif /* _BSD_MISC_H */ | 93 | #endif /* _BSD_MISC_H */ |