1 From 0dff338a704f4ad11a2b78871e1f2a0b8030b4d2 Mon Sep 17 00:00:00 2001
2 From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
3 Date: Mon, 28 Nov 2016 23:12:37 +0100
4 Subject: [PATCH] Add missing headers for open() flags
6 Both pidfile.c and syslog.c use open() and its flags, but forgets to
7 include all relevant headers, causing build failures with the musl C
10 Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
14 2 files changed, 4 insertions(+)
16 diff --git a/pidfile.c b/pidfile.c
17 index e0959a0..14de56f 100644
24 +#include <sys/types.h>
31 diff --git a/syslog.c b/syslog.c
32 index f96b43c..d09e7aa 100644
35 @@ -57,6 +57,8 @@ static char sccsid[] = "@(#)syslog.c 5.28 (Berkeley) 6/27/90";
38 #include <sys/syslog.h>
39 +#include <sys/stat.h>
43 #include "pathnames.h"