aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator
diff options
context:
space:
mode:
authorMicael Karlberg <[email protected]>2019-03-06 16:30:19 +0100
committerMicael Karlberg <[email protected]>2019-03-06 16:30:19 +0100
commit37e4f15b1eec4c0f39f08d9fb5478507397888c1 (patch)
tree4755411706a5779af482a13e140139c476a0fd35 /erts/emulator
parent923979fa35eba33e98a95f241364765ba8504f34 (diff)
downloadotp-37e4f15b1eec4c0f39f08d9fb5478507397888c1.tar.gz
otp-37e4f15b1eec4c0f39f08d9fb5478507397888c1.tar.bz2
otp-37e4f15b1eec4c0f39f08d9fb5478507397888c1.zip
[socket] More if-def to make it "work" on windows
Diffstat (limited to 'erts/emulator')
-rw-r--r--erts/emulator/nifs/common/socket_nif.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/erts/emulator/nifs/common/socket_nif.c b/erts/emulator/nifs/common/socket_nif.c
index cbfe587e6a..bb3df85ea4 100644
--- a/erts/emulator/nifs/common/socket_nif.c
+++ b/erts/emulator/nifs/common/socket_nif.c
@@ -962,6 +962,7 @@ ESOCK_NIF_FUNCS
#undef ESOCK_NIF_FUNC_DEF
+#if !defined(__WIN32__)
/* And here comes the functions that does the actual work (for the most part) */
static ERL_NIF_TERM nsupports(ErlNifEnv* env, int key);
static ERL_NIF_TERM nsupports_options(ErlNifEnv* env);
@@ -2373,6 +2374,7 @@ static int esock_demonitor(const char* slogan,
ESockMonitor* monP);
static void esock_monitor_init(ESockMonitor* mon);
+#endif // if defined(__WIN32__)
/*
#if defined(HAVE_SYS_UN_H) || defined(SO_BINDTODEVICE)
@@ -2389,6 +2391,9 @@ static void socket_down(ErlNifEnv* env,
void* obj,
const ErlNifPid* pid,
const ErlNifMonitor* mon);
+
+#if !defined(__WIN32__)
+
static void socket_down_acceptor(ErlNifEnv* env,
SocketDescriptor* descP,
ERL_NIF_TERM sockRef,
@@ -2443,6 +2448,8 @@ static BOOLEAN_T extract_debug(ErlNifEnv* env,
static BOOLEAN_T extract_iow(ErlNifEnv* env,
ERL_NIF_TERM map);
+#endif // if defined(__WIN32__)
+
static int on_load(ErlNifEnv* env, void** priv_data, ERL_NIF_TERM load_info);