Patrick Williams | 92b42cb | 2022-09-03 06:53:57 -0500 | [diff] [blame] | 1 | From 823b6754a4d7655480b6e8576a9d0037f842d653 Mon Sep 17 00:00:00 2001 |
| 2 | From: Jan Luebbe <jlu@pengutronix.de> |
| 3 | Date: Thu, 25 Aug 2022 12:19:16 +0200 |
| 4 | Subject: [PATCH] tools:gensiot: Fix build with musl |
| 5 | |
| 6 | According to POSIX getpid() is available in unistd.h, not sys/unistd.h. |
| 7 | |
| 8 | Upstream-Status: Submitted [https://github.com/cminyard/gensio/pull/47] |
| 9 | Signed-off-by: Jan Luebbe <jlu@pengutronix.de> |
| 10 | --- |
| 11 | tools/gensiotool.c | 2 +- |
| 12 | 1 file changed, 1 insertion(+), 1 deletion(-) |
| 13 | |
| 14 | diff --git a/tools/gensiotool.c b/tools/gensiotool.c |
| 15 | index 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 | -- |
| 28 | 2.30.2 |
| 29 | |