From ab778cc54c8671ba79cf4baca7be2608c7cce886 Mon Sep 17 00:00:00 2001 From: Antoine Jacoutot Date: Sun, 5 Oct 2014 08:50:22 +0200 Subject: Unbreak build on OpenBSD Add missing header for strdup(3). When EPROTO is not available, fallback to EIO. https://bugs.freedesktop.org/show_bug.cgi?id=84665 --- p11-kit/rpc-transport.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'p11-kit') diff --git a/p11-kit/rpc-transport.c b/p11-kit/rpc-transport.c index 8c3fb0c..b3651ad 100644 --- a/p11-kit/rpc-transport.c +++ b/p11-kit/rpc-transport.c @@ -52,6 +52,7 @@ #include #include #include +#include #ifdef OS_UNIX #include @@ -65,6 +66,10 @@ #include #endif +#ifndef EPROTO +#define EPROTO EIO +#endif + typedef struct { /* Never changes */ int fd; -- cgit v1.1