[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
passfd on OpenBSD
From: |
Bruno Haible |
Subject: |
passfd on OpenBSD |
Date: |
Sun, 13 Mar 2011 23:45:52 +0100 |
User-agent: |
KMail/1.9.9 |
On OpenBSD 4.4, I get this compilation error:
passfd.c: In function `sendfd':
passfd.c:45: error: storage size of `iov' isn't known
The reason is that for 'struct iovec' you need <sys/uio.h>, not only
<sys/socket.h> (look in POSIX!). This fixes it:
2011-03-13 Bruno Haible <address@hidden>
passfd: Fix compilation error on OpenBSD.
* lib/passfd.c: Include <sys/uio.h>.
--- lib/passfd.c.orig Sun Mar 13 23:34:19 2011
+++ lib/passfd.c Sun Mar 13 21:30:49 2011
@@ -24,6 +24,7 @@
#include <stdlib.h>
#include <string.h>
#include <sys/types.h>
+#include <sys/uio.h>
#include <unistd.h>
#include <sys/socket.h>
--
In memoriam Odette Sansom <http://en.wikipedia.org/wiki/Odette_Hallowes>
- Re: [PATCH 1/4] Add AF_UNIX test of socket familly, (continued)
- [PATCH 2/4] sendfd, recvf pass file descriptors along Unix domain sockets, Bastien ROUCARIES, 2011/03/07
- [PATCH 4/4] Add test for passfd, Bastien ROUCARIES, 2011/03/07
- passfd on glibc, Bruno Haible, 2011/03/13
- passfd on OpenBSD,
Bruno Haible <=
- passfd on FreeBSD, Bruno Haible, 2011/03/13
- passfd on AIX 5.2, Bruno Haible, 2011/03/13
- passfd on Solaris, Bruno Haible, 2011/03/13
- passfd on more platforms, Bruno Haible, 2011/03/13
- Re: passfd on more platforms, Eric Blake, 2011/03/14