Add errno.h

This commit is contained in:
Soner Tari 2020-03-31 19:22:22 +03:00
parent 3ebfba3044
commit e3adfba4ba
3 changed files with 6 additions and 4 deletions

View File

@ -217,10 +217,10 @@ endif
# Autodetect dependencies known to pkg-config
PKGS:=
#ifndef OPENSSL_BASE
#PKGS+= $(shell $(PKGCONFIG) $(PCFLAGS) --exists openssl \
# && echo openssl)
#endif
ifndef OPENSSL_BASE
PKGS+= $(shell $(PKGCONFIG) $(PCFLAGS) --exists openssl \
&& echo openssl)
endif
ifndef LIBEVENT_BASE
PKGS+= $(shell $(PKGCONFIG) $(PCFLAGS) --exists libevent \
&& echo libevent)

View File

@ -44,6 +44,7 @@
#include <unistd.h>
#include <signal.h>
#include <string.h>
#include <errno.h>
#ifndef __BSD__
#include <getopt.h>

View File

@ -37,6 +37,7 @@
#include <sys/types.h>
#include <sys/socket.h>
#include <sys/resource.h>
#include <errno.h>
/*
* Handle out of memory conditions in early stages of main().