test.h: sync with upstream

upstream commit: 4150ed1c1cce9e71a6b22024b9683ba4f2dc1bec

Unbreak build with GCC on FreeBSD

Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
This commit is contained in:
Yuxuan Shui 2019-11-11 20:55:18 +00:00
parent 7328b3f891
commit 9657d52cd7
No known key found for this signature in database
GPG Key ID: 37C999F617EA1A47
1 changed files with 1 additions and 0 deletions

View File

@ -12,6 +12,7 @@
defined(__NetBSD__) || defined(__OpenBSD__) defined(__NetBSD__) || defined(__OpenBSD__)
#define USE_SYSCTL_FOR_ARGS 1 #define USE_SYSCTL_FOR_ARGS 1
#include <sys/sysctl.h> #include <sys/sysctl.h>
#include <sys/types.h>
#include <unistd.h> // getpid #include <unistd.h> // getpid
#endif #endif