From: Florian Forster Date: Wed, 24 Nov 2010 10:44:30 +0000 (+0100) Subject: lua plugin: Fix includes. X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=41837ae4de5c694f727aa87a1813a6e27acd7d93;p=collectd.git lua plugin: Fix includes. "collectd.h" has to be the first file to be included. --- diff --git a/src/lua.c b/src/lua.c index 294aa893..3850a221 100644 --- a/src/lua.c +++ b/src/lua.c @@ -20,20 +20,17 @@ * Julien Ammous **/ -#include // access - -/* Include the Lua API header files. */ -#define lua_c -#include -#include -#include - #include "collectd.h" #include "plugin.h" #include "common.h" #include "configfile.h" #include "utils_cache.h" +/* Include the Lua API header files. */ +#include +#include +#include + #include "lua_exports.c" typedef struct lua_script_s {