From 94c8f34a81e8e835390bc8130a2f088f672bd558 Mon Sep 17 00:00:00 2001 From: Francesco Abbate Date: Mon, 19 Apr 2021 01:18:52 -0700 Subject: [PATCH] Fix missing header for macos --- dev-utils/run-local | 5 ++++- src/bundle_open.m | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) 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 +#include "lua.h" void set_macos_bundle_resources(lua_State *L) { @autoreleasepool