File: 0004-Fix-undeclared-strlcat-from-libdumbnet.patch

package info (click to toggle)
farpd 0.2-13
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 416 kB
  • sloc: ansic: 2,646; sh: 449; makefile: 16
file content (20 lines) | stat: -rw-r--r-- 540 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
From: =?utf-8?b?0L3QsNCx?= <nabijaczleweli@nabijaczleweli.xyz>
Date: Wed, 29 Oct 2025 21:43:53 +0100
Subject: Fix undeclared strlcat() from libdumbnet

---
 arpd.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arpd.c b/arpd.c
index 8a33d90..183a269 100644
--- a/arpd.c
+++ b/arpd.c
@@ -28,6 +28,7 @@
 
 #include <event.h>
 #include <dumbnet.h>
+extern size_t strlcat(char *dst, const char *restrict src, size_t sz); // we use the symbol from libdumbnet.so but it's not in the header
 #include "tree.h"
 
 #define ARPD_MAX_ACTIVE		600