From: Bruce Cran <bruce@cran.org.uk>
To: Jens Axboe <axboe@kernel.dk>,
"fio@vger.kernel.org" <fio@vger.kernel.org>
Subject: Re: [PATCH] Add Windows ctime_r implementation and empty ioctl.h header
Date: Thu, 07 May 2015 15:27:01 -0600 [thread overview]
Message-ID: <554BD8A5.6040104@cran.org.uk> (raw)
In-Reply-To: <554BD3CE.6090609@kernel.dk>
[-- Attachment #1: Type: text/plain, Size: 198 bytes --]
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
[-- Attachment #2: 0001-Fix-Windows-build-add-limits.h-to-eta.c-and-define-_.patch --]
[-- Type: text/plain, Size: 980 bytes --]
From eeb938efb2d79cd53fee8cd60f6d07033e37cbf1 Mon Sep 17 00:00:00 2001
From: Bruce Cran <bruce.cran@gmail.com>
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
next prev parent reply other threads:[~2015-05-07 21:27 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-05-07 3:31 [PATCH] Add Windows ctime_r implementation and empty ioctl.h header Bruce Cran
2015-05-07 16:59 ` Jens Axboe
2015-05-07 21:04 ` Bruce Cran
2015-05-07 21:06 ` Jens Axboe
2015-05-07 21:27 ` Bruce Cran [this message]
2015-05-07 21:32 ` Jens Axboe
2015-05-07 22:56 ` Bruce Cran
2015-05-08 0:20 ` Jens Axboe
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=554BD8A5.6040104@cran.org.uk \
--to=bruce@cran.org.uk \
--cc=axboe@kernel.dk \
--cc=fio@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.