From: Antoine Jacoutot Date: Sun, 5 Oct 2014 06:50:22 +0000 (+0200) Subject: Unbreak build on OpenBSD X-Git-Tag: 0.22.1~5 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ab778cc54c8671ba79cf4baca7be2608c7cce886;p=p11-kit 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 --- 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;