diff options
Diffstat (limited to 'openbsd-compat')
-rw-r--r-- | openbsd-compat/getrrsetbyname.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/openbsd-compat/getrrsetbyname.c b/openbsd-compat/getrrsetbyname.c index 3ba54e0da..3f75590e2 100644 --- a/openbsd-compat/getrrsetbyname.c +++ b/openbsd-compat/getrrsetbyname.c | |||
@@ -130,6 +130,7 @@ static int count_dns_rr(struct dns_rr *, u_int16_t, u_int16_t); | |||
130 | * Routines to insert/extract short/long's. | 130 | * Routines to insert/extract short/long's. |
131 | */ | 131 | */ |
132 | 132 | ||
133 | #ifndef HAVE__GETSHORT | ||
133 | static u_int16_t | 134 | static u_int16_t |
134 | _getshort(msgp) | 135 | _getshort(msgp) |
135 | register const u_char *msgp; | 136 | register const u_char *msgp; |
@@ -139,7 +140,9 @@ _getshort(msgp) | |||
139 | GETSHORT(u, msgp); | 140 | GETSHORT(u, msgp); |
140 | return (u); | 141 | return (u); |
141 | } | 142 | } |
143 | #endif | ||
142 | 144 | ||
145 | #ifndef HAVE__GETLONG | ||
143 | static u_int32_t | 146 | static u_int32_t |
144 | _getlong(msgp) | 147 | _getlong(msgp) |
145 | register const u_char *msgp; | 148 | register const u_char *msgp; |
@@ -149,6 +152,7 @@ _getlong(msgp) | |||
149 | GETLONG(u, msgp); | 152 | GETLONG(u, msgp); |
150 | return (u); | 153 | return (u); |
151 | } | 154 | } |
155 | #endif | ||
152 | 156 | ||
153 | int | 157 | int |
154 | getrrsetbyname(const char *hostname, unsigned int rdclass, | 158 | getrrsetbyname(const char *hostname, unsigned int rdclass, |