From: Stuart Henderson Date: Wed, 31 Jul 2019 08:09:13 +0000 (+0100) Subject: use errno.h not sys/errno.h in utils.c as in other files (#207) X-Git-Url: http://git.prime8.dev/?a=commitdiff_plain;h=921ddda6581e0dfd9a51d3ec598aea04df19218d;p=ttyd.git 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. --- 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 +}