]> andersk Git - openssh.git/commitdiff
- (dtucker) [configure.ac openbsd-compat/openbsd-compat.h] Check for
authordtucker <dtucker>
Sun, 3 Sep 2006 12:44:49 +0000 (12:44 +0000)
committerdtucker <dtucker>
Sun, 3 Sep 2006 12:44:49 +0000 (12:44 +0000)
   declaration of writev(2) and declare it ourselves if necessary.  Makes
   the atomiciov() calls build on really old systems.  ok djm@

ChangeLog
configure.ac
openbsd-compat/openbsd-compat.h

index 44701630cc50aaa5a777a392b60111ca9aeca22d..bdd9a950a5c35d4500f0153f1019ea5e11f9e747 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+20060903
+ - (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@
+
 20060902
  - (dtucker) [openbsd-compat/port-irix.c] Add errno.h, found by Iain Morgan.
  - (dtucker) [ssh-keyscan.c ssh-rand-helper.c ssh.c sshconnect.c
index cb5a325772dcca5dca004cfa81bd5bb2e4224a77..7a36e1008b6cb32569457b7ce954914ee3f3390a 100644 (file)
@@ -1328,6 +1328,12 @@ AC_CHECK_DECLS(O_NONBLOCK, , ,
 #endif
        ])
 
+AC_CHECK_DECLS(writev, , , [
+#include <sys/types.h>
+#include <sys/uio.h>
+#include <unistd.h>
+       ])
+
 AC_CHECK_FUNCS(setresuid, [
        dnl Some platorms have setresuid that isn't implemented, test for this
        AC_MSG_CHECKING(if setresuid seems to work)
index e2946da09c77f91e3adc3d65c00e45f6d18b4f04..6fe30fec83ec71f114af9959eac2a6219d7da64b 100644 (file)
@@ -131,6 +131,11 @@ int getgrouplist(const char *, gid_t, gid_t *, int *);
 int BSDgetopt(int argc, char * const *argv, const char *opts);
 #endif
 
+#if defined(HAVE_DECL_WRITEV) && HAVE_DECL_WRITEV == 0
+# include <sys/types.h>
+# include <sys/uio.h>
+int writev(int, struct iovec *, int);
+#endif
 
 /* Home grown routines */
 #include "bsd-misc.h"
This page took 0.241847 seconds and 5 git commands to generate.