mirror of
https://github.com/tsl0922/ttyd.git
synced 2025-12-30 07:24:23 +01:00
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:
committed by
Shuanglei Tao
parent
6facf525c1
commit
921ddda658
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user