summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@zip.com.au>2007-04-29 15:06:44 +1000
committerDarren Tucker <dtucker@zip.com.au>2007-04-29 15:06:44 +1000
commitdca0edff2fb312e05fd7f2d560fb80bc97a38350 (patch)
tree09e924dd1b7d19266473ecd2a188aee29e3e8a75
parent391de5c0237a452d7653e88b54c825a5fb468e3a (diff)
- (dtucker) [configure.ac defines.h] Have configure check for offsetof
to prevent redefinition warnings.
-rw-r--r--ChangeLog4
-rw-r--r--configure.ac8
-rw-r--r--defines.h4
3 files changed, 11 insertions, 5 deletions
diff --git a/ChangeLog b/ChangeLog
index db5cf6adb..19c4e4f74 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -11,6 +11,8 @@
11 - (dtucker) [openbsd-compat/xmmap.c] Include stdlib.h for mkstemp prototype. 11 - (dtucker) [openbsd-compat/xmmap.c] Include stdlib.h for mkstemp prototype.
12 - (dtucker) [configure.ac defines.h] Prevent warnings about __attribute__ 12 - (dtucker) [configure.ac defines.h] Prevent warnings about __attribute__
13 __nonnull__ for versions of GCC that don't support it. 13 __nonnull__ for versions of GCC that don't support it.
14 - (dtucker) [configure.ac defines.h] Have configure check for offsetof
15 to prevent redefinition warnings.
14 16
15 20070406 17 20070406
16 - (dtucker) [INSTALL] Update the systems that have PAM as standard. Link 18 - (dtucker) [INSTALL] Update the systems that have PAM as standard. Link
@@ -2895,4 +2897,4 @@
2895 OpenServer 6 and add osr5bigcrypt support so when someone migrates 2897 OpenServer 6 and add osr5bigcrypt support so when someone migrates
2896 passwords between UnixWare and OpenServer they will still work. OK dtucker@ 2898 passwords between UnixWare and OpenServer they will still work. OK dtucker@
2897 2899
2898$Id: ChangeLog,v 1.4657 2007/04/29 04:49:21 dtucker Exp $ 2900$Id: ChangeLog,v 1.4658 2007/04/29 05:06:44 dtucker Exp $
diff --git a/configure.ac b/configure.ac
index c113b2fa7..dbe77cbba 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1,4 +1,4 @@
1# $Id: configure.ac,v 1.378 2007/04/29 04:49:21 dtucker Exp $ 1# $Id: configure.ac,v 1.379 2007/04/29 05:06:44 dtucker Exp $
2# 2#
3# Copyright (c) 1999-2004 Damien Miller 3# Copyright (c) 1999-2004 Damien Miller
4# 4#
@@ -15,7 +15,7 @@
15# OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 15# OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
16 16
17AC_INIT(OpenSSH, Portable, openssh-unix-dev@mindrot.org) 17AC_INIT(OpenSSH, Portable, openssh-unix-dev@mindrot.org)
18AC_REVISION($Revision: 1.378 $) 18AC_REVISION($Revision: 1.379 $)
19AC_CONFIG_SRCDIR([ssh.c]) 19AC_CONFIG_SRCDIR([ssh.c])
20 20
21AC_CONFIG_HEADER(config.h) 21AC_CONFIG_HEADER(config.h)
@@ -1375,6 +1375,10 @@ AC_CHECK_DECLS(MAXSYMLINKS, , , [
1375#include <sys/param.h> 1375#include <sys/param.h>
1376 ]) 1376 ])
1377 1377
1378AC_CHECK_DECLS(offsetof, , , [
1379#include <stddef.h>
1380 ])
1381
1378AC_CHECK_FUNCS(setresuid, [ 1382AC_CHECK_FUNCS(setresuid, [
1379 dnl Some platorms have setresuid that isn't implemented, test for this 1383 dnl Some platorms have setresuid that isn't implemented, test for this
1380 AC_MSG_CHECKING(if setresuid seems to work) 1384 AC_MSG_CHECKING(if setresuid seems to work)
diff --git a/defines.h b/defines.h
index 5e75bc624..336880c96 100644
--- a/defines.h
+++ b/defines.h
@@ -25,7 +25,7 @@
25#ifndef _DEFINES_H 25#ifndef _DEFINES_H
26#define _DEFINES_H 26#define _DEFINES_H
27 27
28/* $Id: defines.h,v 1.141 2007/04/29 04:49:21 dtucker Exp $ */ 28/* $Id: defines.h,v 1.142 2007/04/29 05:06:45 dtucker Exp $ */
29 29
30 30
31/* Constants */ 31/* Constants */
@@ -491,7 +491,7 @@ struct winsize {
491 (struct cmsghdr *)NULL) 491 (struct cmsghdr *)NULL)
492#endif /* CMSG_FIRSTHDR */ 492#endif /* CMSG_FIRSTHDR */
493 493
494#ifndef offsetof 494#if defined(HAVE_DECL_OFFSETOF) && HAVE_DECL_OFFSETOF == 0
495# define offsetof(type, member) ((size_t) &((type *)0)->member) 495# define offsetof(type, member) ((size_t) &((type *)0)->member)
496#endif 496#endif
497 497