diff options
author | Darren Tucker <dtucker@zip.com.au> | 2006-05-15 09:17:29 +0200 |
---|---|---|
committer | Darren Tucker <dtucker@zip.com.au> | 2006-05-15 09:17:29 +0200 |
commit | cefd8bb36d307a671fbbe5358d94c97910edf7c6 (patch) | |
tree | 6a6a2b2533090cb55b787dddceec4dd87635c21f /defines.h | |
parent | - (dtucker) [openbsd-compat/getrrsetbyname.c] Use _compat_res instead of (diff) | |
download | openssh-cefd8bb36d307a671fbbe5358d94c97910edf7c6.tar.xz openssh-cefd8bb36d307a671fbbe5358d94c97910edf7c6.zip |
- (dtucker) [defines.h] Find a value for IOV_MAX or use a conservative
default. Patch originally from tim@, ok djm
Diffstat (limited to '')
-rw-r--r-- | defines.h | 12 |
1 files changed, 11 insertions, 1 deletions
@@ -25,7 +25,7 @@ #ifndef _DEFINES_H #define _DEFINES_H -/* $Id: defines.h,v 1.131 2006/03/15 02:02:28 djm Exp $ */ +/* $Id: defines.h,v 1.132 2006/05/15 07:17:30 dtucker Exp $ */ /* Constants */ @@ -731,6 +731,16 @@ struct winsize { # undef HAVE_MMAP #endif +#ifndef IOV_MAX +# if defined(_XOPEN_IOV_MAX) +# define IOV_MAX _XOPEN_IOV_MAX +# elif defined(DEF_IOV_MAX) +# define IOV_MAX DEF_IOV_MAX +# else +# define IOV_MAX 16 +# endif +#endif + /* some system headers on HP-UX define YES/NO */ #ifdef YES # undef YES |