File: move-include-config.h.patch

package info (click to toggle)
wmnut 0.67-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 440 kB
  • sloc: ansic: 1,076; makefile: 39
file content (31 lines) | stat: -rw-r--r-- 692 bytes parent folder | download
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.

--- a/src/wmnut.h
+++ b/src/wmnut.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"