]> ruderich.org/simon Gitweb - nsscash/nsscash.git/commitdiff
nss/tests: add missing headers for WIFEXITED/WEXITSTATUS
authorSimon Ruderich <simon@ruderich.org>
Sat, 16 May 2020 07:03:47 +0000 (09:03 +0200)
committerSimon Ruderich <simon@ruderich.org>
Sat, 16 May 2020 07:05:47 +0000 (09:05 +0200)
Found on FreeBSD which fails to build without these headers.

nss/tests/gr.c
nss/tests/pw.c

index a54e9e26925158b018399bf51ab59a4ae2c30021..041e8d3a3a689e970b24ae25493da5fb32515c04 100644 (file)
@@ -23,6 +23,8 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
+#include <sys/types.h>
+#include <sys/wait.h>
 #include <unistd.h>
 
 #include "../cash_nss.h"
index 88260c45aace3064d8afc9dd14cdaa22750cd18e..80a9a5c0b662a75771a8fa21ef1ccaa50f59c31a 100644 (file)
@@ -23,6 +23,8 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
+#include <sys/types.h>
+#include <sys/wait.h>
 #include <unistd.h>
 
 #include "../cash_nss.h"