diff options
author | Brent Cook <bcook@openbsd.org> | 2015-09-13 18:57:29 -0500 |
---|---|---|
committer | Brent Cook <bcook@openbsd.org> | 2015-09-13 18:57:29 -0500 |
commit | 696ba18c6ab02ded424aa4d87712064eba82f804 (patch) | |
tree | 0054cc4606c8f81c382518cd435db5941c7f9434 /include | |
parent | 8c90be2a29053ac613dfe0c11a423da16c7c4520 (diff) | |
download | portable-696ba18c6ab02ded424aa4d87712064eba82f804.tar.gz portable-696ba18c6ab02ded424aa4d87712064eba82f804.tar.bz2 portable-696ba18c6ab02ded424aa4d87712064eba82f804.zip |
fixup windows and older linux builds
Diffstat (limited to 'include')
-rw-r--r-- | include/Makefile.am | 1 | ||||
-rw-r--r-- | include/compat/sys/socket.h | 10 |
2 files changed, 11 insertions, 0 deletions
diff --git a/include/Makefile.am b/include/Makefile.am index 929ff7d..24a83cf 100644 --- a/include/Makefile.am +++ b/include/Makefile.am | |||
@@ -31,6 +31,7 @@ noinst_HEADERS += compat/sys/ioctl.h | |||
31 | noinst_HEADERS += compat/sys/mman.h | 31 | noinst_HEADERS += compat/sys/mman.h |
32 | noinst_HEADERS += compat/sys/param.h | 32 | noinst_HEADERS += compat/sys/param.h |
33 | noinst_HEADERS += compat/sys/select.h | 33 | noinst_HEADERS += compat/sys/select.h |
34 | noinst_HEADERS += compat/sys/socket.h | ||
34 | noinst_HEADERS += compat/sys/stat.h | 35 | noinst_HEADERS += compat/sys/stat.h |
35 | noinst_HEADERS += compat/sys/time.h | 36 | noinst_HEADERS += compat/sys/time.h |
36 | noinst_HEADERS += compat/sys/types.h | 37 | noinst_HEADERS += compat/sys/types.h |
diff --git a/include/compat/sys/socket.h b/include/compat/sys/socket.h new file mode 100644 index 0000000..17e84f1 --- /dev/null +++ b/include/compat/sys/socket.h | |||
@@ -0,0 +1,10 @@ | |||
1 | /* | ||
2 | * Public domain | ||
3 | * sys/socket.h compatibility shim | ||
4 | */ | ||
5 | |||
6 | #ifndef _WIN32 | ||
7 | #include_next <sys/socket.h> | ||
8 | #else | ||
9 | #include <win32netcompat.h> | ||
10 | #endif | ||