Code

myplugin.c: Include system headers before collectd headers.
authorSebastian Harl <sh@tokkee.org>
Fri, 22 Dec 2006 00:27:45 +0000 (00:27 +0000)
committerSebastian Harl <sh@tokkee.org>
Fri, 22 Dec 2006 00:27:45 +0000 (00:27 +0000)
The collectd headers can hardly been made self-containing in the upstream
sources as we're using autoconf and a couple of #ifdef's to include the
correct headers. To work around this all required headers are included before
the collectd headers.

debian/examples/myplugin.c

index 1bd8e4238ed078d9d1a0d4caab0d878941a23757..ebe661adf34d38729415f88b98f623c39624dbb6 100644 (file)
  * option) any later version.
  */
 
-#include <collectd/common.h>    /* rrd_update_file */
-#include <collectd/plugin.h>    /* plugin_* */
-
 #include <stdio.h>
 #include <stdlib.h>
 
+#include <collectd/common.h>    /* rrd_update_file */
+#include <collectd/plugin.h>    /* plugin_* */
+
 /* Optional config file support */
 /* #include <collectd/configfile.h> */