diff options
| author | Ryan Moeller <freqlabs@FreeBSD.org> | 2020-06-22 03:14:43 +0000 |
|---|---|---|
| committer | Ryan Moeller <freqlabs@FreeBSD.org> | 2020-06-22 03:14:43 +0000 |
| commit | 94a82666846d62cdff7d78f78d428df35412e50d (patch) | |
| tree | 4db5a48a903d7887c246376e60c1836b266a4a56 /libexec/flua | |
| parent | f82d3b398842c43556cc1ea854e13d8de80c5d64 (diff) | |
Notes
Diffstat (limited to 'libexec/flua')
| -rw-r--r-- | libexec/flua/Makefile | 6 | ||||
| -rw-r--r-- | libexec/flua/linit_flua.c | 2 |
2 files changed, 8 insertions, 0 deletions
diff --git a/libexec/flua/Makefile b/libexec/flua/Makefile index 4b5c4ee554167..a4dc916e7834a 100644 --- a/libexec/flua/Makefile +++ b/libexec/flua/Makefile @@ -32,4 +32,10 @@ CFLAGS+= -I${SRCTOP}/lib/libedit -I${SRCTOP}/contrib/libedit LIBADD+= edit .endif +UCLSRC?= ${SRCTOP}/contrib/libucl +.PATH: ${UCLSRC}/lua +SRCS+= lua_ucl.c +CFLAGS+= -I${UCLSRC}/include -I${UCLSRC}/src -I${UCLSRC}/uthash +LIBADD+= ucl + .include <bsd.prog.mk> diff --git a/libexec/flua/linit_flua.c b/libexec/flua/linit_flua.c index 99818c3b4db76..b62084b66ffa0 100644 --- a/libexec/flua/linit_flua.c +++ b/libexec/flua/linit_flua.c @@ -36,6 +36,7 @@ #include "lauxlib.h" #include "lfs.h" #include "lposix.h" +#include "lua_ucl.h" /* ** these libs are loaded by lua.c and are readily available to any Lua @@ -59,6 +60,7 @@ static const luaL_Reg loadedlibs[] = { {"lfs", luaopen_lfs}, {"posix.sys.stat", luaopen_posix_sys_stat}, {"posix.unistd", luaopen_posix_unistd}, + {"ucl", luaopen_ucl}, {NULL, NULL} }; |
