Skip to content

Commit 4d39759

Browse files
committed
define LUA_OK if not defined in notionflux
Fixed compilation under Lua 5.1, it seems it's available since Lua 5.2
1 parent 5dee2b5 commit 4d39759

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

mod_notionflux/notionflux/notionflux.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,10 @@
4444

4545
#include "../notionflux.h"
4646

47+
#ifndef LUA_OK
48+
#define LUA_OK 0
49+
#endif
50+
4751
#define die(...) fprintf(stderr, __VA_ARGS__), exit(1)
4852

4953
#define SOCK_ATOM "_NOTION_MOD_NOTIONFLUX_SOCKET"

0 commit comments

Comments
 (0)