summaryrefslogtreecommitdiffstats
path: root/defines.h
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@zip.com.au>2005-07-14 09:22:11 +0200
committerDarren Tucker <dtucker@zip.com.au>2005-07-14 09:22:11 +0200
commit4a42257b06fed3f2ec60ca27175d7db76761aebc (patch)
treee163fa7e0c64e9161a84d031a41f614242c1a8fd /defines.h
parent - dtucker@cvs.openbsd.org 2005/07/14 04:00:43 (diff)
downloadopenssh-4a42257b06fed3f2ec60ca27175d7db76761aebc.tar.xz
openssh-4a42257b06fed3f2ec60ca27175d7db76761aebc.zip
- (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@.
Diffstat (limited to 'defines.h')
-rw-r--r--defines.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/defines.h b/defines.h
index 3a11e6d65..f7029abb4 100644
--- a/defines.h
+++ b/defines.h
@@ -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))