Skip to content

Commit

Permalink
use errno.h not sys/errno.h in utils.c as in other files (#207)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
sthen authored and tsl0922 committed Jul 31, 2019
1 parent 6facf52 commit 921ddda
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/utils.c
Expand Up @@ -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__
Expand Down Expand Up @@ -144,4 +144,4 @@ base64_encode(const unsigned char *buffer, size_t length) {
*dst = '\0';

return ret;
}
}

0 comments on commit 921ddda

Please sign in to comment.