Re: [PATCH] Add Windows ctime_r implementation and empty ioctl.h header

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 5/7/2015 3:06 PM, Jens Axboe wrote:

Thanks, added

And another patch, since my tree wasn't quite up-to-date: this time to add <limits.h> to eta.c and define _POSIX_HOST_NAME_MAX.

--
Bruce
>From eeb938efb2d79cd53fee8cd60f6d07033e37cbf1 Mon Sep 17 00:00:00 2001
From: Bruce Cran <bruce.cran@xxxxxxxxx>
Date: Thu, 7 May 2015 15:24:45 -0600
Subject: [PATCH] Fix Windows build: add limits.h to eta.c and define
 _POSIX_HOST_NAME_MAX

---
 eta.c              | 1 +
 os/windows/posix.h | 2 ++
 2 files changed, 3 insertions(+)

diff --git a/eta.c b/eta.c
index e458457..a5a8f53 100644
--- a/eta.c
+++ b/eta.c
@@ -4,6 +4,7 @@
 #include <unistd.h>
 #include <fcntl.h>
 #include <string.h>
+#include <limits.h>
 
 #include "fio.h"
 #include "lib/pow2.h"
diff --git a/os/windows/posix.h b/os/windows/posix.h
index 85640a2..3b4865f 100644
--- a/os/windows/posix.h
+++ b/os/windows/posix.h
@@ -4,6 +4,8 @@
 typedef off_t off64_t;
 typedef int clockid_t;
 
+#define _POSIX_HOST_NAME_MAX 255
+
 extern int clock_gettime(clockid_t clock_id, struct timespec *tp);
 extern int inet_aton(const char *, struct in_addr *);
 extern int win_to_posix_error(DWORD winerr);
-- 
1.9.5.msysgit.1


[Index of Archives]     [Linux Kernel]     [Linux SCSI]     [Linux IDE]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux SCSI]

  Powered by Linux