libs/web: remove debugging code
[project/luci.git] / libs / nixio / src / sockopt.c
index 7e063e4a385f22dd43895889bd4a363a25b135ae..cede884ce4616d7748c16a4613a2b4aa31eb8a1f 100644 (file)
 
 #include "nixio.h"
 
+#ifndef __WINNT__
+#include <net/if.h>
+#endif
+
 #include <sys/types.h>
 #include <sys/time.h>
 #include <string.h>
@@ -200,7 +204,7 @@ static int nixio__gso_mreq6(lua_State *L, int fd, int level, int opt, int set) {
                                return nixio__perror_s(L);
                        }
                        lua_pushstring(L, buf);
-                       lua_pushnumber(L, val.ipv6mr_interface);
+                       lua_pushinteger(L, val.ipv6mr_interface);
                        return 2;
                }
        } else {