util.struct: Import Roberto 'struct' library v0.3

Downloaded from http://www.inf.puc-rio.br/~roberto/struct/

This is for compatibility with Lua 5.2 (and 5.1). Eventually we can replace
this with string.pack/string.unpack which are available in 5.3+.
This commit is contained in:
Matthew Wild 2022-03-04 15:03:02 +00:00
parent 09bdd81659
commit fe56effa55
4 changed files with 431 additions and 2 deletions

View file

@ -31,7 +31,9 @@ ifeq ($(EXCERTS),yes)
-$(MAKE) -C certs localhost.crt example.com.crt
endif
install: prosody.install prosodyctl.install prosody.cfg.lua.install util/encodings.so util/encodings.so util/pposix.so util/signal.so
CMODULES=util/encodings.so util/encodings.so util/pposix.so util/signal.so util/struct.so
install: prosody.install prosodyctl.install prosody.cfg.lua.install $(CMODULES)
$(MKDIR) $(BIN) $(CONFIG) $(MODULES) $(SOURCE)
$(MKDIR_PRIVATE) $(DATA)
$(MKDIR) $(MAN)/man1