]> granicus.if.org Git - p11-kit/commitdiff
Unbreak build on OpenBSD
authorAntoine Jacoutot <ajacoutot@gnome.org>
Sun, 5 Oct 2014 06:50:22 +0000 (08:50 +0200)
committerStef Walter <stefw@redhat.com>
Mon, 6 Oct 2014 05:30:10 +0000 (07:30 +0200)
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

index 8c3fb0c2a97e29d4fa528e54b68886395c6ec077..b3651ad43f360d087f3ba113cc7e64f385e8b7ad 100644 (file)
@@ -52,6 +52,7 @@
 #include <fcntl.h>
 #include <stdint.h>
 #include <stdlib.h>
+#include <string.h>
 
 #ifdef OS_UNIX
 #include <sys/socket.h>
 #include <winsock2.h>
 #endif
 
+#ifndef EPROTO
+#define EPROTO EIO
+#endif
+
 typedef struct {
        /* Never changes */
        int fd;