Andrew Geissler | 5199d83 | 2021-09-24 16:47:35 -0500 | [diff] [blame^] | 1 | From 790ef313364d1f1efb6f283705bb324eea2979ba Mon Sep 17 00:00:00 2001 |
| 2 | From: Alexander Kanavin <alex@linutronix.de> |
| 3 | Date: Sun, 5 Sep 2021 10:13:08 +0200 |
| 4 | Subject: [PATCH] src/common: correct header location |
| 5 | |
| 6 | sys/unistd.h is not guaranteed to exist, and does not with |
| 7 | e.g. musl C library. |
| 8 | |
| 9 | Upstream-Status: Pending |
| 10 | Signed-off-by: Alexander Kanavin <alex@linutronix.de> |
| 11 | --- |
| 12 | src/common/kernel-probe.c | 2 +- |
| 13 | src/common/userspace-probe.c | 2 +- |
| 14 | 2 files changed, 2 insertions(+), 2 deletions(-) |
| 15 | |
| 16 | diff --git a/src/common/kernel-probe.c b/src/common/kernel-probe.c |
| 17 | index 2beb53f..44100bc 100644 |
| 18 | --- a/src/common/kernel-probe.c |
| 19 | +++ b/src/common/kernel-probe.c |
| 20 | @@ -20,7 +20,7 @@ |
| 21 | #include <lttng/kernel-probe.h> |
| 22 | #include <sys/stat.h> |
| 23 | #include <sys/types.h> |
| 24 | -#include <sys/unistd.h> |
| 25 | +#include <unistd.h> |
| 26 | |
| 27 | static |
| 28 | int lttng_kernel_probe_location_address_serialize( |
| 29 | diff --git a/src/common/userspace-probe.c b/src/common/userspace-probe.c |
| 30 | index 67b0ee6..66afc6f 100644 |
| 31 | --- a/src/common/userspace-probe.c |
| 32 | +++ b/src/common/userspace-probe.c |
| 33 | @@ -20,7 +20,7 @@ |
| 34 | #include <lttng/userspace-probe-internal.h> |
| 35 | #include <sys/stat.h> |
| 36 | #include <sys/types.h> |
| 37 | -#include <sys/unistd.h> |
| 38 | +#include <unistd.h> |
| 39 | |
| 40 | static |
| 41 | int lttng_userspace_probe_location_function_set_binary_fd_handle( |