- (dtucker) [configure.ac defines.h] Define __sentinel__ to nothing if the

compiler doesn't understand it to prevent warnings.  If any mainstream
   compiler versions acquire it we can test for those versions.  Based on
   discussion with djm@.
This commit is contained in:
Darren Tucker 2005-07-14 17:22:11 +10:00
parent 8e2eb308d0
commit 4a42257b06
3 changed files with 14 additions and 3 deletions

View File

@ -23,6 +23,10 @@
- dtucker@cvs.openbsd.org 2005/07/14 04:00:43
[misc.h]
use __sentinel__ attribute; ok deraadt@ djm@ markus@
- (dtucker) [configure.ac defines.h] Define __sentinel__ to nothing if the
compiler doesn't understand it to prevent warnings. If any mainstream
compiler versions acquire it we can test for those versions. Based on
discussion with djm@.
20050707
- dtucker [auth-krb5.c auth.h gss-serv-krb5.c] Move KRB5CCNAME generation for
@ -2821,4 +2825,4 @@
- (djm) Trim deprecated options from INSTALL. Mention UsePAM
- (djm) Fix quote handling in sftp; Patch from admorten AT umich.edu
$Id: ChangeLog,v 1.3844 2005/07/14 07:07:21 dtucker Exp $
$Id: ChangeLog,v 1.3845 2005/07/14 07:22:11 dtucker Exp $

View File

@ -1,4 +1,4 @@
# $Id: configure.ac,v 1.277 2005/07/07 10:33:36 dtucker Exp $
# $Id: configure.ac,v 1.278 2005/07/14 07:22:11 dtucker Exp $
#
# Copyright (c) 1999-2004 Damien Miller
#
@ -368,6 +368,9 @@ mips-sony-bsd|mips-sony-newsos4)
AC_DEFINE(USE_PIPES)
AC_DEFINE(BROKEN_SAVED_UIDS)
;;
*-*-openbsd*)
AC_DEFINE(HAVE_ATTRIBUTE__SENTINEL__, 1, [OpenBSD's gcc has sentinel])
;;
*-*-solaris*)
if test "x$withval" != "xno" ; then
need_dash_r=1

View File

@ -25,7 +25,7 @@
#ifndef _DEFINES_H
#define _DEFINES_H
/* $Id: defines.h,v 1.121 2005/05/27 11:13:41 dtucker Exp $ */
/* $Id: defines.h,v 1.122 2005/07/14 07:22:11 dtucker Exp $ */
/* Constants */
@ -436,6 +436,10 @@ struct winsize {
# define __dead __attribute__((noreturn))
#endif
#if !defined(HAVE_ATTRIBUTE__SENTINEL__) && !defined(__sentinel__)
# define __sentinel__
#endif
/* *-*-nto-qnx doesn't define this macro in the system headers */
#ifdef MISSING_HOWMANY
# define howmany(x,y) (((x)+((y)-1))/(y))