Skip to content

Commit 5f32636

Browse files
committed
chmlib: Fix implicit function decls
1 parent 786b419 commit 5f32636

File tree

2 files changed

+23
-0
lines changed

2 files changed

+23
-0
lines changed

devel/chmlib/distinfo

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@ SHA512 (chmlib-0.40.tar.bz2) = 3a3e151cf455b19e9e7c163a1d1e5ac52e8196f0b98f77932
55
Size (chmlib-0.40.tar.bz2) = 252036 bytes
66
SHA1 (patch-aa) = c4a7c21e8ae0cb097e9225cdf7e099395c5ed331
77
SHA1 (patch-ac) = 32c3e3a1fe548123bce15de4cb81b869c9cbded8
8+
SHA1 (patch-src_chm_http.c) = 0a0f687a7f40bfce7489960a69b98613ccd06e33
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
$NetBSD: patch-src_chm_http.c,v 1.1 2025/09/29 20:47:29 mrg Exp $
2+
3+
Add missing headers for inet_addr(3), close(2), write(2).
4+
5+
--- src/chm_http.c.orig 2009-05-23 15:08:18.000000000 +0000
6+
+++ src/chm_http.c
7+
@@ -33,6 +33,7 @@
8+
#define _REENTRANT
9+
#include <stdio.h>
10+
#include <stdlib.h>
11+
+#include <unistd.h>
12+
#include <string.h>
13+
#if __sun || __sgi
14+
#include <strings.h>
15+
@@ -43,6 +44,7 @@
16+
#include <sys/socket.h>
17+
#include <sys/types.h>
18+
#include <netinet/in.h>
19+
+#include <arpa/inet.h>
20+
21+
/* threading includes */
22+
#include <pthread.h>

0 commit comments

Comments
 (0)