aboutsummaryrefslogtreecommitdiff
path: root/lib/liblua
diff options
context:
space:
mode:
authorWarner Losh <imp@FreeBSD.org>2023-02-07 22:07:08 +0000
committerWarner Losh <imp@FreeBSD.org>2023-02-08 17:33:26 +0000
commit8c784bb8cf36911b828652f0bf7e88f443abec50 (patch)
tree4a7bec363d70cda4659b8a808c711f411618854a /lib/liblua
parent87d405eab91169e0b650a7dd2e5097c0b990fac5 (diff)
parent755d9301ca89f02956fd17858b9d4d821ab5c972 (diff)
Diffstat (limited to 'lib/liblua')
-rw-r--r--lib/liblua/luaconf.local.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/lib/liblua/luaconf.local.h b/lib/liblua/luaconf.local.h
new file mode 100644
index 000000000000..8f3fef15ddca
--- /dev/null
+++ b/lib/liblua/luaconf.local.h
@@ -0,0 +1,25 @@
+/*
+ * Copyright (c) 2023, Netflix, Inc
+ *
+ * SPDX-License-Identifier: BSD-2-Clause
+ */
+
+#pragma once
+
+/*
+ * We need to always define this. For the boot loader, we use it. For flua
+ * we don't, but it needs to be defined to keep some ifdefs happy.
+ */
+#define LUA_FLOAT_INT64 4
+
+#define LUA_USE_POSIX
+#ifndef BOOTSTRAPPING
+#define LUA_USE_DLOPEN
+#endif
+
+#undef LUA_ROOT
+#undef LUA_LDIR
+#undef LUA_CDIR
+#define LUA_ROOT "/usr/"
+#define LUA_LDIR LUA_ROOT "share/flua/"
+#define LUA_CDIR LUA_ROOT "lib/flua/"