summaryrefslogtreecommitdiff
path: root/openbsd-compat/openbsd-compat.h
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@zip.com.au>2006-09-03 22:44:49 +1000
committerDarren Tucker <dtucker@zip.com.au>2006-09-03 22:44:49 +1000
commited0b59218ef9bb41a25922885d3fae7e67b8ba04 (patch)
treee0f887b046a8ca04609ae104a43a30ad7f02c9dd /openbsd-compat/openbsd-compat.h
parent46aa3e0ce1d2f341bb3e4d46035faae3bb5ee69c (diff)
- (dtucker) [configure.ac openbsd-compat/openbsd-compat.h] Check for
declaration of writev(2) and declare it ourselves if necessary. Makes the atomiciov() calls build on really old systems. ok djm@
Diffstat (limited to 'openbsd-compat/openbsd-compat.h')
-rw-r--r--openbsd-compat/openbsd-compat.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/openbsd-compat/openbsd-compat.h b/openbsd-compat/openbsd-compat.h
index 278ac71d9..aac2e6cbc 100644
--- a/openbsd-compat/openbsd-compat.h
+++ b/openbsd-compat/openbsd-compat.h
@@ -1,4 +1,4 @@
1/* $Id: openbsd-compat.h,v 1.41 2006/08/30 17:24:42 djm Exp $ */ 1/* $Id: openbsd-compat.h,v 1.42 2006/09/03 12:44:50 dtucker Exp $ */
2 2
3/* 3/*
4 * Copyright (c) 1999-2003 Damien Miller. All rights reserved. 4 * Copyright (c) 1999-2003 Damien Miller. All rights reserved.
@@ -131,6 +131,11 @@ int getgrouplist(const char *, gid_t, gid_t *, int *);
131int BSDgetopt(int argc, char * const *argv, const char *opts); 131int BSDgetopt(int argc, char * const *argv, const char *opts);
132#endif 132#endif
133 133
134#if defined(HAVE_DECL_WRITEV) && HAVE_DECL_WRITEV == 0
135# include <sys/types.h>
136# include <sys/uio.h>
137int writev(int, struct iovec *, int);
138#endif
134 139
135/* Home grown routines */ 140/* Home grown routines */
136#include "bsd-misc.h" 141#include "bsd-misc.h"