add sys/types.h to the common includes to fix a problem with ssize_t

Sun, 15 Dec 2024 15:22:45 +0100

author
Mike Becker <universe@uap-core.de>
date
Sun, 15 Dec 2024 15:22:45 +0100
changeset 1016
fe177d6dabb8
parent 1015
a0922b925d2a
child 1017
b0098854071f

add sys/types.h to the common includes to fix a problem with ssize_t

src/cx/buffer.h file | annotate | diff | comparison | revisions
src/cx/common.h file | annotate | diff | comparison | revisions
--- a/src/cx/buffer.h	Sun Dec 15 14:32:51 2024 +0100
+++ b/src/cx/buffer.h	Sun Dec 15 15:22:45 2024 +0100
@@ -49,8 +49,6 @@
 #include "common.h"
 #include "allocator.h"
 
-#include <sys/types.h>
-
 #ifdef __cplusplus
 extern "C" {
 #endif
--- a/src/cx/common.h	Sun Dec 15 14:32:51 2024 +0100
+++ b/src/cx/common.h	Sun Dec 15 15:22:45 2024 +0100
@@ -96,6 +96,7 @@
 #include <stddef.h>
 #include <stdbool.h>
 #include <stdint.h>
+#include <sys/types.h>
 
 // ---------------------------------------------------------------------------
 //       Attribute definitions

mercurial