File: 0005-include-kernel.h-Include-missing-string.h-to-avoid-F.patch

package info (click to toggle)
elk 3.99.8-10
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 5,204 kB
  • sloc: ansic: 22,346; lisp: 6,208; makefile: 775; sh: 171; awk: 154; cpp: 92
file content (22 lines) | stat: -rw-r--r-- 573 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
20
21
22
From: Boyuan Yang <byang@debian.org>
Date: Wed, 28 Feb 2024 10:53:31 -0500
Subject: include/kernel.h: Include missing string.h to avoid FTBFS

With -Werror=implicit-function-declaration, the project will FTBFS
due to using strlen without including <string.h>.
---
 include/kernel.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/include/kernel.h b/include/kernel.h
index d18e175..5905e7f 100644
--- a/include/kernel.h
+++ b/include/kernel.h
@@ -33,6 +33,7 @@
 
 #include <stdio.h>
 #include <signal.h>
+#include <string.h>
 
 #include "site.h"
 #include "funcproto.h"