No need to include lots of network-related header files.
#include <sys/stat.h>
#include <fcntl.h>
-#include <sys/wait.h>
+#include <signal.h>
#include <stdio.h>
#include <stdlib.h>
#include <time.h> /* time(), localtime() */
#include <errno.h>
#include <limits.h>
#include <stdarg.h>
-#include <ctype.h>
-#include <netinet/in.h>
-#include <arpa/inet.h>
-#include <sys/socket.h>
-#include <sys/un.h> /* needed by create_pf_socket */
+#include <inttypes.h>
#include <string.h>
#include <assert.h>
#include <osl.h>