Message ID | 20231203025909.808554-1-code@reto-schneider.ch |
---|---|
State | Accepted |
Headers | show |
Series | util: Add missing include | expand |
On 03.12.23 03:58, Reto Schneider wrote: > From: Reto Schneider <reto.schneider@husqvarnagroup.com> > > This fixes the following kind of errors: > > | In file included from .../core/hw-compatibility.c:12: > | .../include/util.h:210:23: error: unknown type name 'mode_t' > | 210 | int mkpath(char *dir, mode_t mode); > | | ^~~~~~ > > This issue has been spotted when building against the musl libc. > > Signed-off-by: Reto Schneider <reto.schneider@husqvarnagroup.com> > --- > include/util.h | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/include/util.h b/include/util.h > index dc0b957b..c7fdbd32 100644 > --- a/include/util.h > +++ b/include/util.h > @@ -17,6 +17,7 @@ > #if defined(__linux__) > #include <linux/types.h> > #endif > +#include <sys/types.h> > #include "globals.h" > #include "swupdate_status.h" > #include "swupdate_dict.h" Reviewed-by: Stefano Babic <stefano.babic@swupdate.org>
diff --git a/include/util.h b/include/util.h index dc0b957b..c7fdbd32 100644 --- a/include/util.h +++ b/include/util.h @@ -17,6 +17,7 @@ #if defined(__linux__) #include <linux/types.h> #endif +#include <sys/types.h> #include "globals.h" #include "swupdate_status.h" #include "swupdate_dict.h"