changeset 5378:ab1aeca76c73 draft

Libc implementations are allowed to require the explicit inclusion of either <sys/types.h> (where it should be defined) or <sys/stat.h> (prototypes requiring it) to expose mode_t. Without that it fails to be exposed in musl libc, and potentially other implementations. Signed-off-by: Ismael Luceno <ismael@iodev.co.uk>
author Ismael Luceno <ismael@iodev.co.uk>
date Sun, 21 Jun 2020 15:06:14 +0100
parents 31ce574fac88
children ca610debb37b
files src/common.h
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/common.h	Fri Jun 19 09:36:55 2020 +0100
+++ b/src/common.h	Sun Jun 21 15:06:14 2020 +0100
@@ -31,6 +31,7 @@
 
 #include <sys/param.h>
 #include <sys/time.h>
+#include <sys/types.h>
 #include <stdint.h>
 #include <stdio.h>