diff options
| author | Ton Voon <ton.voon@opsera.com> | 2010-06-21 13:50:34 +0100 |
|---|---|---|
| committer | Ton Voon <ton.voon@opsera.com> | 2010-06-21 13:50:34 +0100 |
| commit | aab4e991d4e4213249058dd073543551c9c88c35 (patch) | |
| tree | efc8cfb750476203fed0c3fc2d04fb1b274e8a81 /gl/time.in.h | |
| parent | 29cf8ff2fea1a8f0e1f56b9f8a07fd7ee68c1770 (diff) | |
| download | monitoring-plugins-aab4e991d4e4213249058dd073543551c9c88c35.tar.gz | |
Sync with the latest Gnulib code (86ba51d)
Signed-off-by: Ton Voon <ton.voon@opsera.com>
Diffstat (limited to 'gl/time.in.h')
| -rw-r--r-- | gl/time.in.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/gl/time.in.h b/gl/time.in.h index 8e364feb..6fb4fd71 100644 --- a/gl/time.in.h +++ b/gl/time.in.h | |||
| @@ -48,10 +48,20 @@ | |||
| 48 | 48 | ||
| 49 | /* Some systems don't define struct timespec (e.g., AIX 4.1, Ultrix 4.3). | 49 | /* Some systems don't define struct timespec (e.g., AIX 4.1, Ultrix 4.3). |
| 50 | Or they define it with the wrong member names or define it in <sys/time.h> | 50 | Or they define it with the wrong member names or define it in <sys/time.h> |
| 51 | (e.g., FreeBSD circa 1997). */ | 51 | (e.g., FreeBSD circa 1997). Stock Mingw does not define it, but the |
| 52 | pthreads-win32 library defines it in <pthread.h>. */ | ||
| 52 | # if ! @TIME_H_DEFINES_STRUCT_TIMESPEC@ | 53 | # if ! @TIME_H_DEFINES_STRUCT_TIMESPEC@ |
| 53 | # if @SYS_TIME_H_DEFINES_STRUCT_TIMESPEC@ | 54 | # if @SYS_TIME_H_DEFINES_STRUCT_TIMESPEC@ |
| 54 | # include <sys/time.h> | 55 | # include <sys/time.h> |
| 56 | # elif @PTHREAD_H_DEFINES_STRUCT_TIMESPEC@ | ||
| 57 | # include <pthread.h> | ||
| 58 | /* The pthreads-win32 <pthread.h> also defines a couple of broken macros. */ | ||
| 59 | # undef asctime_r | ||
| 60 | # undef ctime_r | ||
| 61 | # undef gmtime_r | ||
| 62 | # undef localtime_r | ||
| 63 | # undef rand_r | ||
| 64 | # undef strtok_r | ||
| 55 | # else | 65 | # else |
| 56 | 66 | ||
| 57 | # ifdef __cplusplus | 67 | # ifdef __cplusplus |
