Include <errno.h> for global errno

At least on OpenBSD the symbol `errno` is otherwise not defined;  it is
used in the `SSO()` macro and `send_authorized_keys()` function.
This commit is contained in:
Klemens Nanni 2020-04-02 18:19:57 +02:00 committed by Nicolas Viennot
parent 9e3e39d66d
commit 339e6c4357
2 changed files with 2 additions and 0 deletions

View File

@ -5,6 +5,7 @@
#include <netinet/in.h>
#include <sys/socket.h>
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

View File

@ -1,6 +1,7 @@
#include <sys/socket.h>
#include <netinet/in.h>
#include <netinet/tcp.h>
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
#include <event.h>