diff options
author | Caleb Maclennan <caleb@alerque.com> | 2023-10-30 22:04:00 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-30 22:04:00 +0300 |
commit | 0f37af645c5f3a0377f1650b529ed23b2e26749f (patch) | |
tree | 2eb0252d70e22dcb0583f76148b5b4fe19816dda /src | |
parent | 0bc8c56043e9fee5403516c62618b7d3acc5508a (diff) | |
parent | 9c6195ea629077bd7f6bf73e3e9991c89ec5ba7e (diff) | |
download | luasocket-0f37af645c5f3a0377f1650b529ed23b2e26749f.tar.gz luasocket-0f37af645c5f3a0377f1650b529ed23b2e26749f.tar.bz2 luasocket-0f37af645c5f3a0377f1650b529ed23b2e26749f.zip |
Merge pull request #415 from leso-kn/feature/actions-windows
Diffstat (limited to 'src')
-rw-r--r-- | src/options.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/options.c b/src/options.c index 6581cae..9dea6bd 100644 --- a/src/options.c +++ b/src/options.c | |||
@@ -58,7 +58,7 @@ int opt_meth_getoption(lua_State *L, p_opt opt, p_socket ps) | |||
58 | /* binds socket to network interface */ | 58 | /* binds socket to network interface */ |
59 | int opt_set_bindtodevice(lua_State *L, p_socket ps) | 59 | int opt_set_bindtodevice(lua_State *L, p_socket ps) |
60 | { | 60 | { |
61 | #if defined(__APPLE__) || defined(__WIN32__) || defined(_MSC_VER) | 61 | #ifndef SO_BINDTODEVICE |
62 | return luaL_error(L, "SO_BINDTODEVICE is not supported on this operating system"); | 62 | return luaL_error(L, "SO_BINDTODEVICE is not supported on this operating system"); |
63 | #else | 63 | #else |
64 | const char *dev = luaL_checkstring(L, 3); | 64 | const char *dev = luaL_checkstring(L, 3); |
@@ -68,7 +68,7 @@ int opt_set_bindtodevice(lua_State *L, p_socket ps) | |||
68 | 68 | ||
69 | int opt_get_bindtodevice(lua_State *L, p_socket ps) | 69 | int opt_get_bindtodevice(lua_State *L, p_socket ps) |
70 | { | 70 | { |
71 | #if defined(__APPLE__) || defined(__WIN32__) || defined(_MSC_VER) | 71 | #ifndef SO_BINDTODEVICE |
72 | return luaL_error(L, "SO_BINDTODEVICE is not supported on this operating system"); | 72 | return luaL_error(L, "SO_BINDTODEVICE is not supported on this operating system"); |
73 | #else | 73 | #else |
74 | char dev[IFNAMSIZ]; | 74 | char dev[IFNAMSIZ]; |