From b6a7108bd5b082d108654d30781ced1ae5b1166c Mon Sep 17 00:00:00 2001
From: Mathieu Westphal <mathieu.westphal@kitware.com>
Date: Mon, 17 Feb 2025 17:20:21 +0100
Subject: [PATCH] Fix some incorrect/missing includes

---
 src/cdi_util.c          | 2 --
 src/iterator_fallback.c | 1 +
 src/stream_cdf_i.c      | 2 +-
 3 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/src/cdi_util.c b/src/cdi_util.c
index 187cf2c53..2d69b4eb7 100644
--- a/src/cdi_util.c
+++ b/src/cdi_util.c
@@ -2,8 +2,6 @@
 #include "config.h"
 #endif
 
-#include <unistd.h>
-
 #include <limits.h>
 #include <stdio.h>
 #include <stdlib.h>
diff --git a/src/iterator_fallback.c b/src/iterator_fallback.c
index eb561f4d1..a2252bd8a 100644
--- a/src/iterator_fallback.c
+++ b/src/iterator_fallback.c
@@ -19,6 +19,7 @@
 #include <assert.h>
 #include <limits.h>
 #include <stdlib.h>
+#include <unistd.h>
 
 struct CdiFallbackIterator
 {
diff --git a/src/stream_cdf_i.c b/src/stream_cdf_i.c
index 94e6c6430..708565eca 100644
--- a/src/stream_cdf_i.c
+++ b/src/stream_cdf_i.c
@@ -6,7 +6,7 @@
 
 #include <ctype.h>
 #include <limits.h>
-#include <strings.h>
+#include <unistd.h>
 
 #include "dmemory.h"
 #include "cdi_int.h"
-- 
GitLab