diff options
author | guenther <> | 2015-09-13 21:36:08 +0000 |
---|---|---|
committer | guenther <> | 2015-09-13 21:36:08 +0000 |
commit | 04476e3178cfe6df05bf48c5efd7194aa15f1153 (patch) | |
tree | 0ae1c47910a09246e8fb5bd1eb051e7bce8f1788 /src/lib/libc/net/res_comp.c | |
parent | 43e71042b70c66db0bc3836b932211fba163d549 (diff) | |
download | openbsd-04476e3178cfe6df05bf48c5efd7194aa15f1153.tar.gz openbsd-04476e3178cfe6df05bf48c5efd7194aa15f1153.tar.bz2 openbsd-04476e3178cfe6df05bf48c5efd7194aa15f1153.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.c | 4 |
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 | } |
443 | DEF_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 | } |
465 | DEF_STRONG(_getlong); | ||
464 | 466 | ||
465 | void | 467 | void |
466 | __putshort(u_int16_t s, u_char *msgp) | 468 | __putshort(u_int16_t s, u_char *msgp) |