aboutsummaryrefslogtreecommitdiffstats
path: root/controller
diff options
context:
space:
mode:
authorRomain Forlot <romain.forlot@iot.bzh>2017-09-16 15:17:23 +0200
committerRomain Forlot <romain.forlot@iot.bzh>2017-12-14 11:00:25 +0100
commitde24d7de2b87f5d8164f49fb130f8693b32362a0 (patch)
treefb4cd5cd0aba7a5f8aa1d05ee48979cf16258365 /controller
parent6e6aab21e97a22dfe459ab048531cf176ef79c98 (diff)
Fix: SUSE different include LUA directory
Change-Id: I21c282bfb0ecb292f2ba83d8031041a8d18fc2b2 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Diffstat (limited to 'controller')
-rw-r--r--controller/ctl-lua.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/controller/ctl-lua.h b/controller/ctl-lua.h
index 628db7f..2a85543 100644
--- a/controller/ctl-lua.h
+++ b/controller/ctl-lua.h
@@ -44,10 +44,16 @@
#include <afb/afb-binding.h>
#include <json-c/json.h>
-// standard lua include file
+
+#ifdef SUSE_LUA_INCDIR
+#include <lua5.3/lua.h>
+#include <lua5.3/lauxlib.h>
+#include <lua5.3/lualib.h>
+#else
#include <lua.h>
#include <lauxlib.h>
#include <lualib.h>
+#endif
#include "ctl-timer.h"
#include "ctl-config.h"