]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Libc implementations are allowed to require the explicit inclusion of
authorIsmael Luceno <ismael@iodev.co.uk>
Sun, 21 Jun 2020 14:06:14 +0000 (15:06 +0100)
committerRoy Marples <roy@marples.name>
Sun, 21 Jun 2020 14:06:14 +0000 (15:06 +0100)
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>
src/common.h

index e79d7d7f8e46dc622d8ba180bb22e378dd49c73b..77efb7ae4e471e3031639636c503858e68a8aa46 100644 (file)
@@ -31,6 +31,7 @@
 
 #include <sys/param.h>
 #include <sys/time.h>
+#include <sys/types.h>
 #include <stdint.h>
 #include <stdio.h>