]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
daemon/ffimodule: add missing extern to kr_layer_t_static
authorTomas Krizek <tomas.krizek@nic.cz>
Wed, 22 Jan 2020 12:55:48 +0000 (13:55 +0100)
committerTomas Krizek <tomas.krizek@nic.cz>
Fri, 24 Jan 2020 12:19:07 +0000 (13:19 +0100)
This also fixes a build error with GCC 10 on fedora.

daemon/ffimodule.h

index 81f5425d6e1cd64307149d261c810a490708b6b9..0b224b801bac309766a5aeeeb60eb17bf5675d5a 100644 (file)
@@ -30,7 +30,7 @@ struct kr_module;
  * @note Lua module is loaded in it's own coroutine,
  *       so it's possible to yield and resume at arbitrary
  *       places except deinit()
- * 
+ *
  * @param  engine daemon engine
  * @param  module prepared module
  * @param  name   module name
@@ -44,5 +44,5 @@ void ffimodule_deinit(lua_State *L);
 /** Static storage for faster passing of layer function parameters to lua callbacks.
  *
  * We don't need to declare it in a header, but let's give it visibility. */
-KR_EXPORT kr_layer_t kr_layer_t_static;
+KR_EXPORT extern kr_layer_t kr_layer_t_static;