mirror of
https://github.com/lunarmodules/luasocket.git
synced 2025-07-15 21:39:51 +02:00
Added inet_pton/inet_ntop for MinGW on Windows; compiles with Lua52.
This commit is contained in:
@ -20,6 +20,7 @@
|
||||
|
||||
#ifdef _WIN32
|
||||
#define INET_ATON
|
||||
#define INET_PTON
|
||||
#endif
|
||||
|
||||
int inet_open(lua_State *L);
|
||||
@ -42,4 +43,9 @@ int inet_optsocktype(lua_State* L, int narg, const char* def);
|
||||
int inet_aton(const char *cp, struct in_addr *inp);
|
||||
#endif
|
||||
|
||||
#ifdef INET_PTON
|
||||
const char *inet_ntop(int af, const void *src, char *dst, socklen_t cnt);
|
||||
int inet_pton(int af, const char *src, void *dst);
|
||||
#endif
|
||||
|
||||
#endif /* INET_H */
|
||||
|
Reference in New Issue
Block a user