From: Sebastian Ramacher <sramacher@debian.org>
Date: Sun, 10 Mar 2024 19:17:04 +0100
Subject: Add missing #includes

---
 camd-newcamd.c    | 1 +
 filter.c          | 1 +
 libtsfuncs/misc.c | 1 +
 process.c         | 1 +
 4 files changed, 4 insertions(+)

diff --git a/camd-newcamd.c b/camd-newcamd.c
index 58e3bae..f31cefd 100644
--- a/camd-newcamd.c
+++ b/camd-newcamd.c
@@ -18,6 +18,7 @@
 #include <stdlib.h>
 #include <string.h>
 #include <unistd.h>
+#include <crypt.h>
 
 #include <openssl/des.h>
 
diff --git a/filter.c b/filter.c
index d22d974..dd76854 100644
--- a/filter.c
+++ b/filter.c
@@ -14,6 +14,7 @@
  */
 #include <ctype.h>
 #include <string.h>
+#include <stdlib.h>
 
 #include "data.h"
 #include "filter.h"
diff --git a/libtsfuncs/misc.c b/libtsfuncs/misc.c
index 475e7e0..8adcd01 100644
--- a/libtsfuncs/misc.c
+++ b/libtsfuncs/misc.c
@@ -5,6 +5,7 @@
  * Released under MIT license.
  * See LICENSE-MIT.txt for license terms.
  */
+#define _GNU_SOURCE
 #include <stdio.h>
 #include <unistd.h>
 #include <netdb.h>
diff --git a/process.c b/process.c
index b19d0dd..ee2106c 100644
--- a/process.c
+++ b/process.c
@@ -15,6 +15,7 @@
 #include <unistd.h>
 #include <string.h>
 #include <sys/uio.h>
+#include <stdlib.h>
 
 #include "data.h"
 #include "csa.h"
