X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-psi;a=blobdiff_plain;f=m4%2Fsys_time.m4;h=9c1f74444ecb63c4f4d31eb57e1341180f03e12c;hp=861fa41af85f16484101855dd89300a895af94a5;hb=7165fe2d16ff26803523fea70c613e2dbd8ce3d8;hpb=b4508f6b917660970f887894a6aaed6c220a2c72 diff --git a/m4/sys_time.m4 b/m4/sys_time.m4 index 861fa41..9c1f744 100644 --- a/m4/sys_time.m4 +++ b/m4/sys_time.m4 @@ -1,5 +1,5 @@ -AC_DEFUN(PSI_CHECK_SYS_TIME, [ - AC_CHECK_HEADERS(sys/time.h) +PSI_CHECK_SYS_TIME() { + PSI_CONFIG_POSIX(sys/time, sys/time.h) PSI_CONST(ITIMER_REAL, int) PSI_CONST(ITIMER_VIRTUAL, int) @@ -19,8 +19,8 @@ AC_DEFUN(PSI_CHECK_SYS_TIME, [ ) PSI_DECL(int getitimer, [(int which, struct itimerval *value)]) - PSI_DECL(int setitimer, [(int which struct itimerval *value, struct itimerval *ovalue)]) + PSI_DECL(int setitimer, [(int which, struct itimerval *value, struct itimerval *ovalue)]) PSI_DECL(int gettimeofday, [(struct timeval *tp, struct timezone *tz)]) PSI_DECL(int utimes, [(char *path, struct timeval times@<:@2@:>@)]) PSI_DECL(int utimensat, [(int fd, char *path, struct timespec times@<:@2@:>@)]) -]) +}