diff options
author | kinichiro <kinichiro.inoguchi@gmail.com> | 2018-03-18 00:38:14 +0900 |
---|---|---|
committer | kinichiro <kinichiro.inoguchi@gmail.com> | 2018-03-18 00:48:49 +0900 |
commit | 1fb8c9c6bea797e4db5e395fb34b899682ee8682 (patch) | |
tree | ed17143c8278e688db9f0eace525c23ac96c58e7 /patches/keypairtest.c.patch | |
parent | 639a6629ae4b2243d1d15670f90750c3200ff4bf (diff) | |
download | portable-1fb8c9c6bea797e4db5e395fb34b899682ee8682.tar.gz portable-1fb8c9c6bea797e4db5e395fb34b899682ee8682.tar.bz2 portable-1fb8c9c6bea797e4db5e395fb34b899682ee8682.zip |
Fix using right functions for file descriptor with MS Visual Studio
Diffstat (limited to 'patches/keypairtest.c.patch')
-rw-r--r-- | patches/keypairtest.c.patch | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/patches/keypairtest.c.patch b/patches/keypairtest.c.patch new file mode 100644 index 0000000..b1f03da --- /dev/null +++ b/patches/keypairtest.c.patch | |||
@@ -0,0 +1,13 @@ | |||
1 | --- tests/keypairtest.c.orig Sun Mar 18 00:31:20 2018 | ||
2 | +++ tests/keypairtest.c Sun Mar 18 00:31:33 2018 | ||
3 | @@ -15,6 +15,10 @@ | ||
4 | * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. | ||
5 | */ | ||
6 | |||
7 | +#ifdef _MSC_VER | ||
8 | +#define NO_REDEF_POSIX_FUNCTIONS | ||
9 | +#endif | ||
10 | + | ||
11 | #include <sys/stat.h> | ||
12 | |||
13 | #include <err.h> | ||