argv.h references ssize_t.  vstream.h references WAIT_STATUS_T.
---
A technique I use to ensure that every header is self-contained is to always
have a corresponding .c for each .h (even if otherwise unnecessary, e.g.,
macro-only headers), and include the corresponding .h before including anything
else.

 src/util/argv.h    | 5 +++++
 src/util/vstream.h | 1 +
 2 files changed, 6 insertions(+)

diff --git a/src/util/argv.h b/src/util/argv.h
index 1c4790696..289f06eff 100644
--- a/src/util/argv.h
+++ b/src/util/argv.h
@@ -11,6 +11,11 @@
 /* DESCRIPTION
 /* .nf
 
+ /*
+  * System library.
+  */
+#include <sys_defs.h>
+
  /*
   * External interface.
   */
diff --git a/src/util/vstream.h b/src/util/vstream.h
index 23688c745..03777253d 100644
--- a/src/util/vstream.h
+++ b/src/util/vstream.h
@@ -14,6 +14,7 @@
  /*
   * System library.
   */
+#include <sys_defs.h>
 #include <sys/time.h>
 #include <time.h>
 #include <fcntl.h>
-- 
2.49.0

_______________________________________________
Postfix-devel mailing list -- postfix-devel@postfix.org
To unsubscribe send an email to postfix-devel-le...@postfix.org

Reply via email to