Commit Graph

55 Commits

Author SHA1 Message Date
b583b2f3ce feat(build): Add support for MSYS2 2024-07-15 11:43:58 +03:00
1fad162690 chore: Remove the executable permission bit from some source files (#434) 2024-06-29 14:33:47 +03:00
98be8d9fc1 chore(http): Correct typos in error message and code comments (#423) 2024-02-12 11:28:01 +03:00
de359ea408 chore(core): Update version markers to last released version
Closes #401
2023-11-11 00:48:02 +03:00
1d61853ab8 chore: Update internal version references to match release (#370) 2022-03-28 11:53:32 +00:00
d9c08114da chore; add Lua 5.4 to make files 2022-03-23 17:11:43 +01:00
78a1657c7d src/makefile: remove -DLUASOCKET_INET_PTON as current mingw builds don't want it 2020-03-28 16:46:49 +00:00
c8d0fdda54 src/makefile: serial += compat 2019-03-10 00:04:20 -07:00
03b72d8f7e Use static initialization
This helps with multi-threaded apps.
2019-03-09 23:23:48 -03:00
1e4255e2a9 Update Windows projects vor Visual Studio 2017 2019-03-01 20:46:37 -03:00
2d8f0d9901 src/makefile: remove visibility and dllexport defines in favor of in-source labeling 2019-02-25 16:04:49 -07:00
5858c8e776 src/makefile: support both lua/$(LUAV) and lua$(LUAV) include paths 2019-02-22 16:16:03 -07:00
d1e35c9573 src/makefile: define UNIX_HAS_SUN_LEN for FreeBSD builds 2019-02-19 04:02:37 -07:00
288219fd6b Update to Visual Studio 2017. 2018-08-22 17:37:32 -03:00
3a33c37b9c rename unix.tcp to unix.stream, unix.udp to unix.dgram 2016-12-25 23:33:10 +08:00
cd1e52eb7a allow DESTDIR to be set from the environment 2016-11-08 22:07:20 +03:00
9f77f8b24f unix socket: compat lua 5.1 2016-06-30 15:40:51 +08:00
aa1b8cc9bc support datagram unix domain sockets 2016-06-24 21:33:19 +08:00
624924a77b Enabled overwriting of MYCF/MYLDFlAGS 2016-04-12 13:06:47 +02:00
5d52ffedf4 Added solaris platform
To compile on solaris some libs had to be linked. So far I was only able
to test it on OmniOS r151006
2016-01-15 18:48:57 +01:00
f4b4720073 Merge branch 'tcp_reuseport' of https://github.com/KateAdams/luasocket into KateAdams-tcp_reuseport 2015-10-05 10:28:29 +08:00
e75444ccd1 New compat.h module implements luaL_setfuncs.
Makes initialization code simpler everywhere.
2015-08-21 15:39:34 -03:00
ddf4292824 Out of the box support for Lua 5.3. 2015-02-18 20:51:37 -02:00
6d5e40c324 Add MYCFLAGS and MYLDFLAGS go allow for customization 2013-09-09 14:55:20 -03:00
d0b1f5b4c1 Add support for FreeBSD in makefile
Thanks to Leryan. See issue #78.
2013-09-09 14:29:14 -03:00
7cad902bb7 Fix makefile and test_socket_error.lua 2013-06-12 21:45:15 +08:00
6e00ffd62f Changing from 2.1-rc1 to 3.0-rc1. 2013-06-11 19:10:03 +08:00
906abf29d1 Fix unix export marker. 2013-06-11 17:20:27 +08:00
a233e27865 Leaving if in src/ but out of build for now. 2013-05-30 16:20:34 +08:00
79e6c4915d Export global only if LUA_COMPAT_MODULE defined. 2013-05-29 16:56:56 +08:00
056d7653f3 Link only against ws2_32.lib. 2013-05-27 21:58:41 +08:00
26704061a4 Fix Visual Studio 2012 projects 2013-05-27 20:30:06 +08:00
22107bb9fc Check linux build. 2013-05-25 07:25:02 -03:00
bb0b31301a Add MingW support. 2013-05-25 18:07:38 +08:00
72a5347f97 Remove warnings and fix makefile for Win32. 2012-12-11 17:43:49 -02:00
618ce43ee3 Fix socket_accept usage to depend on family. 2012-12-11 16:35:27 -02:00
f329aae724 Fix HORRIBLE but in b64/qp code.
Bug was caught by user moteus.
Code was checking if arguments was nil after using
luaL_Buffer code, which messes with the stack.
Simple to fix, though.
2012-08-01 03:06:09 -03:00
54ffcd483f Fixed default Linux path to work with Ubuntu
Also fixed clean target to remove serial objects
2012-08-01 02:13:27 -03:00
36461db5bb src/makefile: Use install instead of cp and mkdir. 2012-05-15 18:44:38 +02:00
c624761d32 src/makefile: Move mkdir to a variable 2012-05-15 18:27:46 +02:00
05535a19f8 Improve makefile to allow overriden variables
Before this change, it was difficult to set default
directories for different platforms that would still
work with different Lua versions.
2012-05-11 15:33:47 +08:00
c291383ce2 Rework makefiles to simplify setting and choosing build options.
Includes documentation for common build settings, reasonable
defaults, and ability to set common build options in the
environment.
2012-05-08 10:51:56 -07:00
f960b3872a Making progress toward a release
Documented headers.lua
Update copyright date everywhere
Remove RCSID from files
Move version back to 2.1 rather than 2.1.1
Fixed url package to support ipv6 hosts
Changed "domain" to "family" in tcp and udp structures
Implemented getfamily methods
2012-04-23 00:18:45 +08:00
b3c4f46179 merged lua_typerrror.{c,h} into auxiliar.{c,h} 2012-04-16 20:41:48 +08:00
4b671f4551 Merge branch 'git-sam' into diego-sam-mwild-integration
Conflicts in options.c were just due to independent small functions
being close to each other.

unix.c in mwild was broken, it wasn't using LUASOCKET_API.

serial.c needed luaL_reg renamed, and to use LUASOCKET_API.

makefile didn't respect standard DESTDIR and prefix makefile
variables, and didn't allow LUAV variable to select lua version to build
against.

I've tested the top-level install-both target builds and installs
against both lua5.1 and lua5.2, but not done further testing.

Conflicts:
	README
	config
	gem/ltn012.tex
	makefile
	src/makefile
	src/options.c
	src/options.h
	src/tcp.c
	src/usocket.c
2012-04-11 14:18:20 -07:00
b1f7c349b5 Add support for serial devices as socket streams on unix. 2012-04-11 13:45:59 -07:00
1f704cfb89 Add all-unix and install-unix targets which include all modules supported on unix.
Besides standard socket and mime modules, this includes unix domain
socket support.
2012-04-11 13:45:59 -07:00
e15ed19db6 Compiles with Lua 5.1.4 and Lua 5.2.0-beta, although the makefile needs sorting out to take maybe a version number and also the local paths need removing. 2012-04-11 13:33:34 -07:00
908ee2cce1 Fix two crashes and add -Wshadow so that this can't happen again.
The two crashes are the s/const char *// changes in tcp.c.  The rest
is cleanup so it will build.
2012-04-11 13:33:34 -07:00
3a8ba90dfb Saving before big changes to support IPv6. 2011-05-25 20:57:22 +00:00