summaryrefslogtreecommitdiff
path: root/defines.h
diff options
context:
space:
mode:
authordtucker <dtucker>2007-04-29 04:49:21 +0000
committerdtucker <dtucker>2007-04-29 04:49:21 +0000
commit2d6ff7410c7a75a8c4b93d8d0bbebab8ecf1a3dd (patch)
treea203ade530356faf9576479a1223d9af641f3aff /defines.h
parentcb836add1920586b6f3aff39a250a96ac285a8b7 (diff)
downloadopenssh-2d6ff7410c7a75a8c4b93d8d0bbebab8ecf1a3dd.tar.gz
- (dtucker) [configure.ac defines.h] Prevent warnings about __attribute__
__nonnull__ for versions of GCC that don't support it.
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 41b14fdf..5e75bc62 100644
--- a/defines.h
+++ b/defines.h
@@ -25,7 +25,7 @@
#ifndef _DEFINES_H
#define _DEFINES_H
-/* $Id: defines.h,v 1.140 2007/04/29 04:39:03 dtucker Exp $ */
+/* $Id: defines.h,v 1.141 2007/04/29 04:49:21 dtucker Exp $ */
/* Constants */
@@ -449,6 +449,10 @@ struct winsize {
# define __bounded__(x, y, z)
#endif
+#if !defined(HAVE_ATTRIBUTE__NONNULL__) && !defined(__nonnull__)
+# define __nonnull__(x)
+#endif
+
/* *-*-nto-qnx doesn't define this macro in the system headers */
#ifdef MISSING_HOWMANY
# define howmany(x,y) (((x)+((y)-1))/(y))