Skip to content

Commit 21f3513

Browse files
committed
tests: Unbreak the build on FreeBSD-based systems
... by using the same additional includes as on Linux. Fixes: CC tests/api/unit_test-test_rsa.o tests/api.c:19554:9: error: call to undeclared function 'waitpid'; ISO C99 and later do not support implicit function declarations [-Werror,-Wimplicit-function-declaration] 19554 | waitpid(pid, &waitstatus, 0); | ^ Tested on ElectroBSD amd64 14.3-STABLE.
1 parent cb78341 commit 21f3513

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/api.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252

5353
#include <stdlib.h>
5454

55-
#ifdef __linux__
55+
#if defined(__linux__) || defined(__FreeBSD__)
5656
#include <unistd.h>
5757
#include <sys/wait.h>
5858
#endif

0 commit comments

Comments
 (0)