X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=qemu-os-posix.h;h=81fd9ab389c648c448685adec5ff473fd87527ce;hb=a80f53aee36f177203a2d4e7a046dc0365e42150;hp=353f87813f8d8f4d558fe8962fbf9749e54c1fe0;hpb=4f25ac5f425d435d0c841ab876adfb541cb521a3;p=qemu.git diff --git a/qemu-os-posix.h b/qemu-os-posix.h index 353f87813..81fd9ab38 100644 --- a/qemu-os-posix.h +++ b/qemu-os-posix.h @@ -39,4 +39,16 @@ void os_setup_post(void); typedef struct timeval qemu_timeval; #define qemu_gettimeofday(tp) gettimeofday(tp, NULL) +#ifndef CONFIG_UTIMENSAT +#ifndef UTIME_NOW +# define UTIME_NOW ((1l << 30) - 1l) +#endif +#ifndef UTIME_OMIT +# define UTIME_OMIT ((1l << 30) - 2l) +#endif +#endif +typedef struct timespec qemu_timespec; +int qemu_utimensat(int dirfd, const char *path, const qemu_timespec *times, + int flags); + #endif