From 921ddda6581e0dfd9a51d3ec598aea04df19218d Mon Sep 17 00:00:00 2001 From: Stuart Henderson Date: Wed, 31 Jul 2019 09:09:13 +0100 Subject: [PATCH] use errno.h not sys/errno.h in utils.c as in other files (#207) Use errno.h rather than sysno/errno.h in utils.c, unbreaking build on OpenBSD (the "errno" symbol is only defined in errno.h not in sys/errno.h). protocol.c and server.c already include errno.h rather than sys/errno.h so this should be safe on other OS here also. --- src/utils.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utils.c b/src/utils.c index 1ab185a..7203cdd 100644 --- a/src/utils.c +++ b/src/utils.c @@ -4,7 +4,7 @@ #include #include #include -#include +#include #include #ifdef __linux__ @@ -144,4 +144,4 @@ base64_encode(const unsigned char *buffer, size_t length) { *dst = '\0'; return ret; -} \ No newline at end of file +} -- 2.43.4