Network support for the Lua language
Find a file
Sutou Kouhei 5a07f531e5 Remove LUASOCKET_INET_PTON from *.rockspec
Recent MinGW provides inet_pton(). There is our inet_pton()
implementation in src/inet.c. Our inet_pton() is declared in
src/inet.h but the declaration causes the following build error:

    gcc -O2 -fPIC -c -o src/luasocket.o -IC://msys64/mingw64/include/luajit-2.0 src/luasocket.c -DLUA_COMPAT_APIINTCASTS -DLUASOCKET_DEBUG -DLUASOCKET_INET_PTON -DWINVER=0x0501 -DLUASOCKET_API=__declspec(dllexport) -DMIME_API=__declspec(dllexport)

    src/inet.h:46:13: error: conflicting types for 'inet_ntop'
       46 | const char *inet_ntop(int af, const void *src, char *dst, socklen_t cnt);
          |             ^~~~~~~~~

    In file included from src/wsocket.h:12,
                     from src/socket.h:18,
                     from src/inet.h:18,
                     from src/luasocket.c:30:
    C:/msys64/mingw64/x86_64-w64-mingw32/include/ws2tcpip.h:451:35: note: previous declaration of 'inet_ntop' was
     here
      451 | WINSOCK_API_LINKAGE LPCSTR WSAAPI InetNtopA(INT Family, LPCVOID pAddr, LPSTR pStringBuf, size_t StringBufSize);
          |                                   ^~~~~~~~~

    In file included from src/luasocket.c:30:
    src/inet.h:47:5: warning: 'inet_pton' redeclared without dllimport attribute: previous dllimport ignored [-Wattributes]
       47 | int inet_pton(int af, const char *src, void *dst);
          |     ^~~~~~~~~

We already know that we don't need our inet_pton() for recent MinGW.
78a1657c7d (#300) removed
-DLUASOCKET_INET_PTON but LUASOCKET_INET_PTON in *.rockspec wasn't
removed.

It causes "luarocks install luasocket" for MinGW causes the above
build error.
2020-07-10 16:12:55 +09:00
doc Merge pull request #116 from linuxmaniac/master 2019-02-24 17:55:27 -03:00
etc fixed yieldable socket.protect in etc/dispatch.lua 2014-11-10 18:17:10 +01:00
gem Merge branch 'git-sam' into diego-sam-mwild-integration 2012-04-11 14:18:20 -07:00
rockspec Remove LUASOCKET_INET_PTON from *.rockspec 2020-07-10 16:12:55 +09:00
samples lpr.lua: fix invalid string escape sequence \? 2013-04-17 23:35:56 -04:00
src src/makefile: remove -DLUASOCKET_INET_PTON as current mingw builds don't want it 2020-03-28 16:46:49 +00:00
test test/find-connect-limit: add missing "socket =" 2020-03-28 22:21:23 +00:00
.gitignore Update to Visual Studio 2017. 2018-08-22 17:37:32 -03:00
.travis.yml Fix path for rockspec in travis file. 2013-06-13 16:40:14 +08:00
FIX Saving before big changes to support IPv6. 2011-05-25 20:57:22 +00:00
LICENSE Change 2.1 to 3.0 2013-06-14 19:16:16 +08:00
linux.cmd Merge branch 'tcp_reuseport' of https://github.com/KateAdams/luasocket into KateAdams-tcp_reuseport 2015-10-05 10:28:29 +08:00
logo.ps Adjusted a few inconsistencies with the manual. 2003-08-16 00:06:04 +00:00
ltn012.wiki fix use of arg in ltn documentation 2013-01-23 19:03:46 +01:00
ltn013.wiki fix use of arg in ltn documentation 2013-01-23 19:03:46 +01:00
Lua.props Update Windows projects vor Visual Studio 2017 2019-03-01 20:46:37 -03:00
luasocket.sln Move Visual Studio projects to 2012. 2012-12-10 18:45:05 -02:00
macosx.cmd Make macosx.cmd generic 2018-09-29 16:29:58 -07:00
makefile Update Windows projects vor Visual Studio 2017 2019-03-01 20:46:37 -03:00
makefile.dist Add files to distribution. 2013-06-14 19:21:27 +08:00
mime.vcxproj Remove .filters and hardcoded platform. 2019-03-02 17:47:18 -03:00
mingw.cmd Add MingW support. 2013-05-25 18:07:38 +08:00
NEW Update NEW file and section 2013-06-14 19:12:44 +08:00
README Change 2.1 to 3.0-rc1 2013-06-14 19:15:37 +08:00
socket.vcxproj Remove .filters and hardcoded platform. 2019-03-02 17:47:18 -03:00
TODO Fix ltn12 version. 2012-12-10 15:50:44 -02:00
vc32.bat Update Windows projects vor Visual Studio 2017 2019-03-01 20:46:37 -03:00
vc64.bat Update Windows projects vor Visual Studio 2017 2019-03-01 20:46:37 -03:00
win32.cmd Update Windows projects vor Visual Studio 2017 2019-03-01 20:46:37 -03:00
win64.cmd Update Windows projects vor Visual Studio 2017 2019-03-01 20:46:37 -03:00
WISH Couple bug fixes. 2007-03-12 04:08:40 +00:00

This is the LuaSocket 3.0-rc1. It has been tested on Windows 7, Mac OS X,
and Linux. 

Please use the project page at GitHub 

    https://github.com/diegonehab/luasocket

to file bug reports or propose changes. 

Have fun,
Diego Nehab.