diff options
author | Amadeusz Sławiński <amade@asmblr.net> | 2014-05-10 18:24:31 +0200 |
---|---|---|
committer | Amadeusz Sławiński <amade@asmblr.net> | 2014-05-10 18:24:31 +0200 |
commit | 6df6baeeb193d5858e811ed5a281d1cd19bc26ab (patch) | |
tree | 27a40fd3539a79352e94a5fe7d6c8a37f338312a | |
parent | f93cbbd859b420546540417af669edfbad32b3fa (diff) | |
download | screen-6df6baeeb193d5858e811ed5a281d1cd19bc26ab.tar.gz |
Fix OpenBSD build
bug 42239
Signed-off-by: Amadeusz Sławiński <amade@asmblr.net>
-rw-r--r-- | src/socket.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/socket.c b/src/socket.c index b4d2400..f95f4a9 100644 --- a/src/socket.c +++ b/src/socket.c @@ -31,8 +31,11 @@ #include <sys/stat.h> #include <fcntl.h> #if !defined(NAMEDPIPE) -#include <sys/socket.h> -#include <sys/un.h> +# include <sys/socket.h> +# ifdef _OpenBSD_ +# include <sys/uio.h> +# endif +# include <sys/un.h> #endif #ifndef SIGINT |