1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
|
Author: Jeremy Sowden <jeremy@azazel.net>
Last-Updated: 2022-08-28
Forwarded: https://github.com/networkupstools/wmnut/pull/3
Description: move the inclusion of config.h before the inclusion of the
system headers. From 2.8, libupsclient needs `HAVE_STDINT_H` defined
before including upsclient.h.
@@ -21,6 +21,10 @@
*
*/
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
/* standard system includes */
#ifdef FreeBSD
#include <err.h>
@@ -41,10 +45,6 @@
#include <upsclient.h>
#include "wmgeneral.h"
-#ifdef HAVE_CONFIG_H
- #include "config.h"
-#endif
-
/* pixmaps */
#include "wmnut_master.xpm"
#include "wmnut_master_LowColor.xpm"
|