File: 02-strlen-prototype.diff

package info (click to toggle)
udptunnel 1.1-12
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 276 kB
  • sloc: ansic: 1,045; sh: 414; makefile: 7
file content (20 lines) | stat: -rw-r--r-- 731 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Description:
 Include string.h header for strlen prototype for GCC 4.4. compatibility.
 .
 Patch forwarded to "lennox@cs.columbia.edu" as the upstream does not have a
 bug tracker.
Author: Chris Lamb <chris@chris-lamb.co.uk>
Forwarded: yes
Last-Update: 2023-09-07

diff -urNad /tmp/bp-build/udptunnel-1.1.orig.orig/host2ip.c /tmp/bp-build/udptunnel-1.1.orig/host2ip.c
--- udptunnel-1.1.orig.orig/host2ip.c	2008-08-28 07:50:41.000000000 +0100
+++ udptunnel-1.1.orig/host2ip.c	2008-08-28 07:50:49.000000000 +0100
@@ -6,6 +6,7 @@
 #include <arpa/inet.h>       /* inet_addr() */
 #include <rpcsvc/ypclnt.h>   /* YP */
 #include <ctype.h>           /* isspace() */
+#include <string.h>          /* strlen() */
 
 #include "host2ip.h"