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.
This commit is contained in:
Stuart Henderson
2019-07-31 09:09:13 +01:00
committed by Shuanglei Tao
parent 6facf525c1
commit 921ddda658

View File

@@ -4,7 +4,7 @@
#include <ctype.h>
#include <string.h>
#include <signal.h>
#include <sys/errno.h>
#include <errno.h>
#include <sys/wait.h>
#ifdef __linux__
@@ -144,4 +144,4 @@ base64_encode(const unsigned char *buffer, size_t length) {
*dst = '\0';
return ret;
}
}