blob: 93831c380f72a9ac9bffcf8b27a7eff06245329e [file] [log] [blame]
Patrick Williams92b42cb2022-09-03 06:53:57 -05001From 823b6754a4d7655480b6e8576a9d0037f842d653 Mon Sep 17 00:00:00 2001
2From: Jan Luebbe <jlu@pengutronix.de>
3Date: Thu, 25 Aug 2022 12:19:16 +0200
4Subject: [PATCH] tools:gensiot: Fix build with musl
5
6According to POSIX getpid() is available in unistd.h, not sys/unistd.h.
7
8Upstream-Status: Submitted [https://github.com/cminyard/gensio/pull/47]
9Signed-off-by: Jan Luebbe <jlu@pengutronix.de>
10---
11 tools/gensiotool.c | 2 +-
12 1 file changed, 1 insertion(+), 1 deletion(-)
13
14diff --git a/tools/gensiotool.c b/tools/gensiotool.c
15index cac531bb4b74..ab0bb9583f9f 100644
16--- a/tools/gensiotool.c
17+++ b/tools/gensiotool.c
18@@ -44,7 +44,7 @@
19 #include <signal.h>
20 #include <errno.h>
21 #include <sys/types.h>
22-#include <sys/unistd.h>
23+#include <unistd.h>
24 #include <syslog.h>
25 #endif
26
27--
282.30.2
29