summaryrefslogtreecommitdiff
path: root/p11-kit
diff options
context:
space:
mode:
Diffstat (limited to 'p11-kit')
-rw-r--r--p11-kit/rpc-transport.c5
1 files changed, 5 insertions, 0 deletions
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 <fcntl.h>
#include <stdint.h>
#include <stdlib.h>
+#include <string.h>
#ifdef OS_UNIX
#include <sys/socket.h>
@@ -65,6 +66,10 @@
#include <winsock2.h>
#endif
+#ifndef EPROTO
+#define EPROTO EIO
+#endif
+
typedef struct {
/* Never changes */
int fd;