diff --git a/configure.ac b/configure.ac index 96b0d94c1..9d4723afb 100644 --- a/configure.ac +++ b/configure.ac @@ -79,7 +79,6 @@ AC_CHECK_SIZEOF(pid_t) AC_CHECK_SIZEOF(uid_t) AC_CHECK_SIZEOF(gid_t) AC_CHECK_SIZEOF(dev_t) -AC_CHECK_SIZEOF(time_t) AC_CHECK_SIZEOF(rlim_t,,[[ #include #include ]]) diff --git a/src/shared/formats-util.h b/src/shared/formats-util.h index ce516b117..0ef355830 100644 --- a/src/shared/formats-util.h +++ b/src/shared/formats-util.h @@ -46,14 +46,6 @@ # error Unknown gid_t size #endif -#if SIZEOF_TIME_T == 8 -# define PRI_TIME PRIi64 -#elif SIZEOF_TIME_T == 4 -# define PRI_TIME PRIu32 -#else -# error Unknown time_t size -#endif - #if SIZEOF_RLIM_T == 8 # define RLIM_FMT "%" PRIu64 #elif SIZEOF_RLIM_T == 4 diff --git a/src/udev/udevadm-monitor.c b/src/udev/udevadm-monitor.c index fa4a4ab9a..e05390766 100644 --- a/src/udev/udevadm-monitor.c +++ b/src/udev/udevadm-monitor.c @@ -46,9 +46,9 @@ static void print_device(struct udev_device *device, const char *source, int pro struct timespec ts; clock_gettime(CLOCK_MONOTONIC, &ts); - printf("%-6s[%"PRI_TIME".%06ld] %-8s %s (%s)\n", + printf("%-6s[%"PRIi64".%06ld] %-8s %s (%s)\n", source, - ts.tv_sec, ts.tv_nsec/1000, + (int64_t)ts.tv_sec, ts.tv_nsec/1000, udev_device_get_action(device), udev_device_get_devpath(device), udev_device_get_subsystem(device));