Add prototype for ctime_r to os-windows.h to avoid compiler warning.
Link in os/windows/posix.o and lib/hweight.o to allow test progs to
build on Windows.
Signed-off-by: Jens Axboe <axboe@fb.com>
T_OBJS += $(T_BTRACE_FIO_OBJS)
T_OBJS += $(T_DEDUPE_OBJS)
+ifneq (,$(findstring CYGWIN,$(CONFIG_TARGET_OS)))
+ T_DEDUPE_OBJS += os/windows/posix.o lib/hweight.o
+ T_SMALLOC_OBJS += os/windows/posix.o lib/hweight.o
+ T_LFSR_TEST_OBJS += os/windows/posix.o lib/hweight.o
+endif
+
T_TEST_PROGS = $(T_SMALLOC_PROGS)
T_TEST_PROGS += $(T_IEEE_PROGS)
T_PROGS += $(T_ZIPF_PROGS)
int fdatasync(int fildes);
int lstat(const char * path, struct stat * buf);
uid_t geteuid(void);
+char* ctime_r(const time_t *t, char *buf);
int nanosleep(const struct timespec *rqtp, struct timespec *rmtp);
ssize_t pread(int fildes, void *buf, size_t nbyte, off_t offset);
ssize_t pwrite(int fildes, const void *buf, size_t nbyte,