File: 050_fix-missing-header.patch

package info (click to toggle)
mrtg 2.17.10-14
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 6,216 kB
  • sloc: perl: 25,746; ansic: 4,568; sh: 1,518; php: 227; awk: 225; makefile: 196; csh: 49; exp: 16
file content (19 lines) | stat: -rw-r--r-- 528 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Description: include <strings.h> header file
Author: NAKAJIMA Yusaku <yupong7@gmail.com>
Origin: https://github.com/oetiker/mrtg/pull/101
Bug: https://github.com/oetiker/mrtg/issues/99
Last-Update: 2022-10-27
Index: mrtg/src/rateup.c
===================================================================
--- mrtg.orig/src/rateup.c
+++ mrtg/src/rateup.c
@@ -38,6 +38,9 @@
 #include "../config.h"
 #endif
 #endif
+#ifdef HAVE_STRINGS_H
+#include <strings.h>
+#endif
 #include <unistd.h>
 #include <sys/types.h>
 #include <limits.h>