mirror of
https://github.com/curl/curl.git
synced 2026-07-15 22:47:17 +03:00
We let this file include more generic headers that many libtests need anyway
to reduce the amount of #include stuff in each single libNNN.c file. unistd.h was added to prevent select() warnings on FreeBSD
This commit is contained in:
parent
b2ef40731a
commit
6e3fa90c9e
1 changed files with 12 additions and 0 deletions
|
|
@ -10,6 +10,18 @@
|
|||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
||||
#ifdef HAVE_SYS_SOCKET_H
|
||||
#include <sys/socket.h>
|
||||
#endif
|
||||
#ifdef HAVE_SYS_SELECT_H
|
||||
/* since so many tests use select(), we can just as well include it here */
|
||||
#include <sys/select.h>
|
||||
#endif
|
||||
#ifdef HAVE_UNISTD_H
|
||||
/* at least somewhat oldish FreeBSD systems need this for select() */
|
||||
#include <unistd.h>
|
||||
#endif
|
||||
|
||||
#ifndef FALSE
|
||||
#define FALSE 0
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue