diff options
author | Darren Tucker <dtucker@zip.com.au> | 2005-05-26 20:12:15 +1000 |
---|---|---|
committer | Darren Tucker <dtucker@zip.com.au> | 2005-05-26 20:12:15 +1000 |
commit | 84ce9b455d04e7f145d43ef8dac2ddc59e41802d (patch) | |
tree | 2f773b9a2c548e149483cd4bb12fe22dd6b2ea23 /openbsd-compat/getrrsetbyname.c | |
parent | f08bdb5a7e599ff95c72df7a92def141360c9b80 (diff) |
- (dtucker) [configure.ac openbsd-compat/getrrsetbyname.c] Bug #1033: Provide
templates for _getshort and _getlong if missing to prevent compiler warnings
on Linux.
Diffstat (limited to 'openbsd-compat/getrrsetbyname.c')
-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 4e869c4d..2016ffe3 100644 --- a/openbsd-compat/getrrsetbyname.c +++ b/openbsd-compat/getrrsetbyname.c @@ -144,6 +144,8 @@ _getshort(msgp) GETSHORT(u, msgp); return (u); } +#elif defined(HAVE_DECL__GETSHORT) && (HAVE_DECL__GETSHORT == 0) +u_int16_t _getshort(register const u_char *); #endif #ifndef HAVE__GETLONG @@ -156,6 +158,8 @@ _getlong(msgp) GETLONG(u, msgp); return (u); } +#elif defined(HAVE_DECL__GETLONG) && (HAVE_DECL__GETLONG == 0) +u_int32_t _getlong(register const u_char *); #endif int |