now all our supported platforms are POSIX

This commit is contained in:
Kartik K. Agaram 2022-02-06 13:27:09 -08:00
parent 6860a02396
commit 63e3ba62c2
2 changed files with 5 additions and 14 deletions

View File

@ -81,33 +81,31 @@ none:
freebsd:
$(MAKE) -C luasocket bsd
$(MAKE) -C luasec bsd
$(MAKE) all MYCFLAGS="-DLUA_USE_POSIX" MYLIBS="-Wl,-E -lncursesw"
$(MAKE) all MYLIBS="-Wl,-E -lncursesw"
linux:
$(MAKE) -C lcurses CC="$(CC)" CFLAGS="$(CFLAGS)"
$(MAKE) -C luasocket linux
$(MAKE) -C luasec linux
$(MAKE) all MYCFLAGS="-Wpedantic -DLUA_USE_POSIX" MYLIBS="-Wl,-E -lncursesw"
$(MAKE) all MYCFLAGS=-Wpedantic MYLIBS="-Wl,-E -lncursesw"
macosx:
$(MAKE) -C lcurses CC="$(CC)" CFLAGS="$(CFLAGS)"
$(MAKE) -C luasocket macosx
$(MAKE) -C luasec macosx
$(MAKE) all MYCFLAGS="-Wpedantic -DLUA_USE_POSIX" MYLIBS="-L/usr/local/opt/openssl@3/lib -lncurses"
# use this on Mac OS X 10.3-
# $(MAKE) all MYCFLAGS=-DLUA_USE_POSIX
$(MAKE) all MYCFLAGS=-Wpedantic MYLIBS="-L/usr/local/opt/openssl@3/lib -lncurses"
openbsd:
$(MAKE) -C lcurses CC="$(CC)" CFLAGS="$(CFLAGS)"
$(MAKE) -C luasocket bsd
$(MAKE) -C luasec bsd
$(MAKE) all MYCFLAGS="-DLUA_USE_POSIX" MYLIBS="-Wl,-E -lncurses"
$(MAKE) all MYLIBS="-Wl,-E -lncurses"
netbsd:
$(MAKE) -C lcurses CC="$(CC)" CFLAGS="$(CFLAGS)"
$(MAKE) -C luasocket bsd
$(MAKE) -C luasec bsd
$(MAKE) all MYCFLAGS="-DLUA_USE_POSIX" MYLIBS="-Wl,-E -lcurses"
$(MAKE) all MYLIBS="-Wl,-E -lcurses"
# list targets that do not create files (but not all makes understand .PHONY)
.PHONY: all $(PLATS) default o a clean depend echo none

View File

@ -34,17 +34,10 @@
#endif
/*
@@ LUA_USE_POSIX includes all functionallity listed as X/Open System
@* Interfaces Extension (XSI).
** CHANGE it (define it) if your system is XSI compatible.
*/
#if defined(LUA_USE_POSIX)
#define LUA_USE_MKSTEMP
#define LUA_USE_ISATTY
#define LUA_USE_POPEN
#define LUA_USE_ULONGJMP
#endif
/*