Subject: pkg/7507: ptl2 include/arpa/inet.h is missing some prototypes
To: None <gnats-bugs@gnats.netbsd.org>
From: Michael Graff <explorer@flame.org>
List: netbsd-bugs
Date: 05/01/1999 22:21:50
>Number: 7507
>Category: pkg
>Synopsis: ptl2 include/arpa/inet.h is missing some prototypes
>Confidential: no
>Severity: serious
>Priority: high
>Responsible: pkg-manager (NetBSD software packages system bug manager)
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sat May 1 22:20:00 1999
>Last-Modified:
>Originator: Michael Graff
>Organization:
flame.org: yes, we do know everything
>Release: current
>Environment:
System: NetBSD kechara.flame.org 1.4_BETA NetBSD 1.4_BETA (KECHARA) #0: Wed Apr 28 19:59:58 PDT 1999 explorer@kechara.flame.org:/raid0/OS/NetBSD/src-1-4/sys/arch/i386/compile/KECHARA i386
>Description:
The file is missing some prototypes that NetBSD has. I included patch
that will only add these for NetBSD, since (for instnace) Slowaris won't
have them, but the other BSDs will.
>How-To-Repeat:
>Fix:
Here's my patch-d:
--- include/arpa/inet.h.sma Sat May 1 21:51:06 1999
+++ include/arpa/inet.h Sat May 1 21:53:11 1999
@@ -56,6 +56,11 @@
char * inet_ntoa __PTL_P((struct in_addr));
char * inet_ntoa_r __PTL_P((struct in_addr in, char *buf,
int bufsize));
+#if defined(__NetBSD__)
+int inet_pton __PTL_P((int, const char *, void *));
+const char *inet_ntop __PTL_P((int, const void *,
+ char *, size_t));
+#endif
__PTL_END_DECLS
>Audit-Trail:
>Unformatted: