diff options
| author | Francesco Abbate <francesco.bbt@gmail.com> | 2021-04-19 01:18:52 -0700 |
|---|---|---|
| committer | Francesco Abbate <francesco.bbt@gmail.com> | 2021-04-19 01:18:52 -0700 |
| commit | 94c8f34a81e8e835390bc8130a2f088f672bd558 (patch) | |
| tree | 767454a78d3372c9157ed2046b3070f264405f61 | |
| parent | 2f8c70ac517dc215db20a8b879de18354ecd67a1 (diff) | |
| download | lite-xl-94c8f34a81e8e835390bc8130a2f088f672bd558.tar.gz lite-xl-94c8f34a81e8e835390bc8130a2f088f672bd558.zip | |
Fix missing header for macos
| -rwxr-xr-x | dev-utils/run-local | 5 | ||||
| -rw-r--r-- | src/bundle_open.m | 1 |
2 files changed, 5 insertions, 1 deletions
diff --git a/dev-utils/run-local b/dev-utils/run-local index 9b4c27bf..1af7fd1c 100755 --- a/dev-utils/run-local +++ b/dev-utils/run-local @@ -47,7 +47,10 @@ if [[ "$OSTYPE" == "msys"* || "$OSTYPE" == "mingw"* ]]; then fi rundir=".run" -if [ "$option_portable" == on ]; then +if [[ "$OSTYPE" == "darwin"* ]]; then + bindir="$rundir" + datadir="$rundir" +elif [ "$option_portable" == on ]; then bindir="$rundir" datadir="$rundir/data" else diff --git a/src/bundle_open.m b/src/bundle_open.m index e1cfa1cb..f8831a3a 100644 --- a/src/bundle_open.m +++ b/src/bundle_open.m @@ -1,4 +1,5 @@ #import <Foundation/Foundation.h> +#include "lua.h" void set_macos_bundle_resources(lua_State *L) { @autoreleasepool |
