diff options
Diffstat (limited to 'defines.h')
-rw-r--r-- | defines.h | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -519,6 +519,13 @@ struct winsize { | |||
519 | } | 519 | } |
520 | #endif | 520 | #endif |
521 | 521 | ||
522 | #ifndef timespeccmp | ||
523 | #define timespeccmp(tsp, usp, cmp) \ | ||
524 | (((tsp)->tv_sec == (usp)->tv_sec) ? \ | ||
525 | ((tsp)->tv_nsec cmp (usp)->tv_nsec) : \ | ||
526 | ((tsp)->tv_sec cmp (usp)->tv_sec)) | ||
527 | #endif | ||
528 | |||
522 | #ifndef __P | 529 | #ifndef __P |
523 | # define __P(x) x | 530 | # define __P(x) x |
524 | #endif | 531 | #endif |