diff options
author | Micael Karlberg <bmk@erlang.org> | 2023-04-12 15:20:23 +0200 |
---|---|---|
committer | Micael Karlberg <bmk@erlang.org> | 2023-04-14 11:09:09 +0200 |
commit | d40cb4761d10044ffe8a3e1d4a9862d3c8da5e3a (patch) | |
tree | 0b89cc8d969922c547189f4f62dc87aa8c0e0704 /erts | |
parent | 38e95d52558570a6f8667151570740978d0865ee (diff) | |
download | erlang-d40cb4761d10044ffe8a3e1d4a9862d3c8da5e3a.tar.gz |
[erts|esock] Fixed broken 'disable-esock'
The I/O Backend files did not support this feature.
OTP-18029
Diffstat (limited to 'erts')
-rw-r--r-- | erts/emulator/nifs/unix/unix_socket_syncio.c | 3 | ||||
-rw-r--r-- | erts/emulator/nifs/win32/win_socket_asyncio.c | 5 |
2 files changed, 8 insertions, 0 deletions
diff --git a/erts/emulator/nifs/unix/unix_socket_syncio.c b/erts/emulator/nifs/unix/unix_socket_syncio.c index 3e3cfcaeef..644400aeb5 100644 --- a/erts/emulator/nifs/unix/unix_socket_syncio.c +++ b/erts/emulator/nifs/unix/unix_socket_syncio.c @@ -29,6 +29,8 @@ # include "config.h" #endif +#ifdef ESOCK_ENABLE + #ifdef HAVE_SENDFILE #if defined(__linux__) || (defined(__sun) && defined(__SVR4)) #include <sys/sendfile.h> @@ -7385,3 +7387,4 @@ void essio_down_reader(ErlNifEnv* env, } +#endif diff --git a/erts/emulator/nifs/win32/win_socket_asyncio.c b/erts/emulator/nifs/win32/win_socket_asyncio.c index 06af1201e2..5c8b033f6d 100644 --- a/erts/emulator/nifs/win32/win_socket_asyncio.c +++ b/erts/emulator/nifs/win32/win_socket_asyncio.c @@ -83,6 +83,8 @@ # include "config.h" #endif +#ifdef ESOCK_ENABLE + // #include <Ws2def.h> // #include <winsock2.h> // #include <windows.h> @@ -9617,3 +9619,6 @@ ERL_NIF_TERM mk_completion_msg(ErlNifEnv* env, return esock_mk_socket_msg(env, sockRef, esock_atom_completion, info); } + + +#endif |