Andrew Geissler | 87f5cff | 2022-09-30 13:13:31 -0500 | [diff] [blame] | 1 | From ef54a6f4a81da8ab653d352bfbd3b2521ce9eb7c Mon Sep 17 00:00:00 2001 |
| 2 | From: Khem Raj <raj.khem@gmail.com> |
| 3 | Date: Mon, 29 Aug 2022 15:55:32 -0700 |
| 4 | Subject: [PATCH] iscsiuio: Use pthread_t for INVALID_THREAD |
| 5 | |
| 6 | pthread_t is opaque, therefore avoid compiler errors on musl when |
| 7 | compiling since pthread_t is not a plain old data type, like glibc |
| 8 | |
| 9 | Upstream-Status: Submitted [https://github.com/open-iscsi/open-iscsi/pull/363] |
| 10 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
| 11 | --- |
| 12 | iscsiuio/src/unix/options.h | 2 +- |
| 13 | 1 file changed, 1 insertion(+), 1 deletion(-) |
| 14 | |
| 15 | diff --git a/iscsiuio/src/unix/options.h b/iscsiuio/src/unix/options.h |
| 16 | index 63b8635..873a98a 100644 |
| 17 | --- a/iscsiuio/src/unix/options.h |
| 18 | +++ b/iscsiuio/src/unix/options.h |
| 19 | @@ -86,7 +86,7 @@ |
| 20 | #define DEBUG_ON 0x2 |
| 21 | |
| 22 | #define INVALID_FD -1 |
| 23 | -#define INVALID_THREAD -1 |
| 24 | +#define INVALID_THREAD (pthread_t)-1 |
| 25 | #define INVALID_HOST_NO -1 |
| 26 | |
| 27 | struct options { |