$OpenBSD: patch-deps_lua_src_lua_cjson_c,v 1.2 2014/12/05 09:33:09 dcoppa Exp $
--- deps/lua/src/lua_cjson.c.orig	Thu Dec  4 04:36:52 2014
+++ deps/lua/src/lua_cjson.c	Fri Dec  5 02:58:23 2014
@@ -40,13 +40,13 @@
 #include <string.h>
 #include <math.h>
 #include <limits.h>
-#include "lua.h"
-#include "lauxlib.h"
+#include <lua.h>
+#include <lauxlib.h>
 
 #include "strbuf.h"
 #include "fpconv.h"
 
-#include "../../../src/solarisfixes.h"
+#include "solarisfixes.h"
 
 #ifndef CJSON_MODNAME
 #define CJSON_MODNAME   "cjson"
@@ -1405,11 +1405,9 @@ int luaopen_cjson(lua_State *l)
 {
     lua_cjson_new(l);
 
-#ifdef ENABLE_CJSON_GLOBAL
     /* Register a global "cjson" table. */
     lua_pushvalue(l, -1);
     lua_setglobal(l, CJSON_MODNAME);
-#endif
 
     /* Return cjson table */
     return 1;
