summaryrefslogtreecommitdiff
path: root/src/lib/libc/net/res_comp.c
diff options
context:
space:
mode:
authorguenther <>2015-09-13 21:36:08 +0000
committerguenther <>2015-09-13 21:36:08 +0000
commitc221c5094439136f46f34e398f2908ca9b5bfb1d (patch)
tree0ae1c47910a09246e8fb5bd1eb051e7bce8f1788 /src/lib/libc/net/res_comp.c
parenta7d607d4cbefc6bbee8e873a463b687f010e2375 (diff)
downloadopenbsd-c221c5094439136f46f34e398f2908ca9b5bfb1d.tar.gz
openbsd-c221c5094439136f46f34e398f2908ca9b5bfb1d.tar.bz2
openbsd-c221c5094439136f46f34e398f2908ca9b5bfb1d.zip
Wrap <arpa/inet.h> and <arpa/nameser.h> so that calls go direct and the
symbols without underbar prefix are all weak
Diffstat (limited to 'src/lib/libc/net/res_comp.c')
-rw-r--r--src/lib/libc/net/res_comp.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lib/libc/net/res_comp.c b/src/lib/libc/net/res_comp.c
index a1467c3dbb..f6f987eb0e 100644
--- a/src/lib/libc/net/res_comp.c
+++ b/src/lib/libc/net/res_comp.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: res_comp.c,v 1.16 2015/01/16 18:18:58 millert Exp $ */ 1/* $OpenBSD: res_comp.c,v 1.17 2015/09/13 21:36:08 guenther Exp $ */
2 2
3/* 3/*
4 * ++Copyright++ 1985, 1993 4 * ++Copyright++ 1985, 1993
@@ -440,6 +440,7 @@ _getshort(const u_char *msgp)
440 GETSHORT(u, msgp); 440 GETSHORT(u, msgp);
441 return (u); 441 return (u);
442} 442}
443DEF_STRONG(_getshort);
443 444
444#ifdef NeXT 445#ifdef NeXT
445/* 446/*
@@ -461,6 +462,7 @@ _getlong(const u_char *msgp)
461 GETLONG(u, msgp); 462 GETLONG(u, msgp);
462 return (u); 463 return (u);
463} 464}
465DEF_STRONG(_getlong);
464 466
465void 467void
466__putshort(u_int16_t s, u_char *msgp) 468__putshort(u_int16_t s, u_char *msgp)