aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkinichiro <kinichiro.inoguchi@gmail.com>2017-05-07 02:23:55 +0900
committerkinichiro <kinichiro.inoguchi@gmail.com>2017-05-14 00:00:10 +0900
commit530fbba1edc3670e88ab7854e19d64df2adf0ee4 (patch)
treed2eeae267593f87a6b3acf54972ed68fd722ce52
parent63042e98f8e5b5d204108506c4aeecdee84639ab (diff)
downloadportable-530fbba1edc3670e88ab7854e19d64df2adf0ee4.tar.gz
portable-530fbba1edc3670e88ab7854e19d64df2adf0ee4.tar.bz2
portable-530fbba1edc3670e88ab7854e19d64df2adf0ee4.zip
Add definition of in_addr_t for Windows build
Diffstat (limited to '')
-rw-r--r--include/compat/sys/types.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/compat/sys/types.h b/include/compat/sys/types.h
index dcd8067..701b77a 100644
--- a/include/compat/sys/types.h
+++ b/include/compat/sys/types.h
@@ -20,12 +20,14 @@
20 20
21#ifdef __MINGW32__ 21#ifdef __MINGW32__
22#include <_bsd_types.h> 22#include <_bsd_types.h>
23typedef uint32_t in_addr_t;
23#endif 24#endif
24 25
25#ifdef _MSC_VER 26#ifdef _MSC_VER
26typedef unsigned char u_char; 27typedef unsigned char u_char;
27typedef unsigned short u_short; 28typedef unsigned short u_short;
28typedef unsigned int u_int; 29typedef unsigned int u_int;
30typedef uint32_t in_addr_t;
29 31
30#include <basetsd.h> 32#include <basetsd.h>
31typedef SSIZE_T ssize_t; 33typedef SSIZE_T ssize_t;