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 /defines.h | |
parent | f045c69060bfdd5cf8759a5f29d7008d02e4de5b (diff) | |
parent | 58bfa257481a1c6938ada9bbd38801cc45633fb0 (diff) |
Debian release 3.6p1-1.
Diffstat (limited to 'defines.h')
-rw-r--r-- | defines.h | 16 |
1 files changed, 15 insertions, 1 deletions
@@ -1,7 +1,7 @@ | |||
1 | #ifndef _DEFINES_H | 1 | #ifndef _DEFINES_H |
2 | #define _DEFINES_H | 2 | #define _DEFINES_H |
3 | 3 | ||
4 | /* $Id: defines.h,v 1.96 2002/09/26 00:38:48 tim Exp $ */ | 4 | /* $Id: defines.h,v 1.97 2003/01/24 00:50:32 djm Exp $ */ |
5 | 5 | ||
6 | 6 | ||
7 | /* Constants */ | 7 | /* Constants */ |
@@ -370,6 +370,20 @@ struct winsize { | |||
370 | } while (0) | 370 | } while (0) |
371 | #endif | 371 | #endif |
372 | 372 | ||
373 | #ifndef TIMEVAL_TO_TIMESPEC | ||
374 | #define TIMEVAL_TO_TIMESPEC(tv, ts) { \ | ||
375 | (ts)->tv_sec = (tv)->tv_sec; \ | ||
376 | (ts)->tv_nsec = (tv)->tv_usec * 1000; \ | ||
377 | } | ||
378 | #endif | ||
379 | |||
380 | #ifndef TIMESPEC_TO_TIMEVAL | ||
381 | #define TIMESPEC_TO_TIMEVAL(tv, ts) { \ | ||
382 | (tv)->tv_sec = (ts)->tv_sec; \ | ||
383 | (tv)->tv_usec = (ts)->tv_nsec / 1000; \ | ||
384 | } | ||
385 | #endif | ||
386 | |||
373 | #ifndef __P | 387 | #ifndef __P |
374 | # define __P(x) x | 388 | # define __P(x) x |
375 | #endif | 389 | #endif |