1
0
mirror of https://github.com/pgbackrest/pgbackrest.git synced 2025-03-03 14:52:21 +02:00

Fix headers for FreeBSD/MacOS.

It looks like Linux is tolerant of the BSD headers so remove the conditionals.

Eventually it might be a good idea to include these based on configure rules but that seems over overkill for now.
This commit is contained in:
David Steele 2020-04-16 11:50:35 -04:00
parent 492180837e
commit 34d7338604
2 changed files with 3 additions and 7 deletions

View File

@ -5,6 +5,7 @@ Socket Client
#include <arpa/inet.h>
#include <netdb.h>
#include <netinet/in.h>
#include <sys/select.h>
#include <sys/socket.h>
#include <unistd.h>

View File

@ -4,15 +4,10 @@ Socket Common Functions
#include "build.auto.h"
#include <fcntl.h>
#ifdef __FreeBSD__
#include <netinet/in.h>
#endif
#ifdef __linux__
#include <netinet/in.h>
#include <netinet/tcp.h>
#endif
#include <sys/types.h>
#include <sys/socket.h>
#include "common/debug.h"
#include "common/io/socket/common.h"