summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog11
-rw-r--r--configure.ac3
-rw-r--r--openbsd-compat/getrrsetbyname.c4
3 files changed, 13 insertions, 5 deletions
diff --git a/ChangeLog b/ChangeLog
index 4dec60c1b..148199a55 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -98,9 +98,12 @@
98 - (dtucker) [regress/reexec.sh] Add ${EXEEXT} so this test also works on 98 - (dtucker) [regress/reexec.sh] Add ${EXEEXT} so this test also works on
99 Cygwin. 99 Cygwin.
100 - (dtucker) [auth-pam.c] Bug #1033: Fix warnings building with PAM on Linux: 100 - (dtucker) [auth-pam.c] Bug #1033: Fix warnings building with PAM on Linux:
101 warning: dereferencing type-punned pointer will break strict-aliasing rules 101 warning: dereferencing type-punned pointer will break strict-aliasing rules
102 warning: passing arg 3 of `pam_get_item' from incompatible pointer type 102 warning: passing arg 3 of `pam_get_item' from incompatible pointer type
103 The type-punned pointer fix is based on a patch from SuSE's rpm. ok djm@ 103 The type-punned pointer fix is based on a patch from SuSE's rpm. ok djm@
104 - (dtucker) [configure.ac openbsd-compat/getrrsetbyname.c] Bug #1033: Provide
105 templates for _getshort and _getlong if missing to prevent compiler warnings
106 on Linux.
104 107
10520050524 10820050524
106 - (djm) [contrib/caldera/openssh.spec contrib/redhat/openssh.spec] 109 - (djm) [contrib/caldera/openssh.spec contrib/redhat/openssh.spec]
@@ -2600,4 +2603,4 @@
2600 - (djm) Trim deprecated options from INSTALL. Mention UsePAM 2603 - (djm) Trim deprecated options from INSTALL. Mention UsePAM
2601 - (djm) Fix quote handling in sftp; Patch from admorten AT umich.edu 2604 - (djm) Fix quote handling in sftp; Patch from admorten AT umich.edu
2602 2605
2603$Id: ChangeLog,v 1.3788 2005/05/26 09:59:48 dtucker Exp $ 2606$Id: ChangeLog,v 1.3789 2005/05/26 10:12:15 dtucker Exp $
diff --git a/configure.ac b/configure.ac
index 20c8f1587..fd8218aea 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1,4 +1,4 @@
1# $Id: configure.ac,v 1.260 2005/04/24 07:52:23 dtucker Exp $ 1# $Id: configure.ac,v 1.261 2005/05/26 10:12:15 dtucker Exp $
2# 2#
3# Copyright (c) 1999-2004 Damien Miller 3# Copyright (c) 1999-2004 Damien Miller
4# 4#
@@ -2402,6 +2402,7 @@ int main()
2402 AC_MSG_RESULT(no)]) 2402 AC_MSG_RESULT(no)])
2403 ]) 2403 ])
2404 AC_CHECK_FUNCS(_getshort _getlong) 2404 AC_CHECK_FUNCS(_getshort _getlong)
2405 AC_CHECK_DECLS([_getshort, _getlong])
2405 AC_CHECK_MEMBER(HEADER.ad, 2406 AC_CHECK_MEMBER(HEADER.ad,
2406 [AC_DEFINE(HAVE_HEADER_AD)],, 2407 [AC_DEFINE(HAVE_HEADER_AD)],,
2407 [#include <arpa/nameser.h>]) 2408 [#include <arpa/nameser.h>])
diff --git a/openbsd-compat/getrrsetbyname.c b/openbsd-compat/getrrsetbyname.c
index 4e869c4df..2016ffe31 100644
--- a/openbsd-compat/getrrsetbyname.c
+++ b/openbsd-compat/getrrsetbyname.c
@@ -144,6 +144,8 @@ _getshort(msgp)
144 GETSHORT(u, msgp); 144 GETSHORT(u, msgp);
145 return (u); 145 return (u);
146} 146}
147#elif defined(HAVE_DECL__GETSHORT) && (HAVE_DECL__GETSHORT == 0)
148u_int16_t _getshort(register const u_char *);
147#endif 149#endif
148 150
149#ifndef HAVE__GETLONG 151#ifndef HAVE__GETLONG
@@ -156,6 +158,8 @@ _getlong(msgp)
156 GETLONG(u, msgp); 158 GETLONG(u, msgp);
157 return (u); 159 return (u);
158} 160}
161#elif defined(HAVE_DECL__GETLONG) && (HAVE_DECL__GETLONG == 0)
162u_int32_t _getlong(register const u_char *);
159#endif 163#endif
160 164
161int 165int