diff options
author | kinichiro <kinichiro.inoguchi@gmail.com> | 2017-05-07 02:23:55 +0900 |
---|---|---|
committer | kinichiro <kinichiro.inoguchi@gmail.com> | 2017-05-14 00:00:10 +0900 |
commit | 530fbba1edc3670e88ab7854e19d64df2adf0ee4 (patch) | |
tree | d2eeae267593f87a6b3acf54972ed68fd722ce52 | |
parent | 63042e98f8e5b5d204108506c4aeecdee84639ab (diff) | |
download | portable-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.h | 2 |
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> |
23 | typedef uint32_t in_addr_t; | ||
23 | #endif | 24 | #endif |
24 | 25 | ||
25 | #ifdef _MSC_VER | 26 | #ifdef _MSC_VER |
26 | typedef unsigned char u_char; | 27 | typedef unsigned char u_char; |
27 | typedef unsigned short u_short; | 28 | typedef unsigned short u_short; |
28 | typedef unsigned int u_int; | 29 | typedef unsigned int u_int; |
30 | typedef uint32_t in_addr_t; | ||
29 | 31 | ||
30 | #include <basetsd.h> | 32 | #include <basetsd.h> |
31 | typedef SSIZE_T ssize_t; | 33 | typedef SSIZE_T ssize_t; |