diff options
author | Khem Raj <raj.khem@gmail.com> | 2022-09-02 08:25:18 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-02 08:25:18 -0700 |
commit | 6667ba8cb4629f1d910dd21aaa4709d122530e1e (patch) | |
tree | 5991e8e2adbc54cd3020423861ba151a1c40ef57 /iscsiuio/src/unix/options.h | |
parent | 677d8ee1bb8ea05dbd4d0cdc6aece681d9edcd97 (diff) | |
download | open-iscsi-6667ba8cb4629f1d910dd21aaa4709d122530e1e.tar.gz |
iscsiuio: Use pthread_t for INVALID_THREAD (#363)
pthread_t is opaque, therefore avoid compiler errors on musl when
compiling since pthread_t is not a plain old data type, like glibc
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'iscsiuio/src/unix/options.h')
-rw-r--r-- | iscsiuio/src/unix/options.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/iscsiuio/src/unix/options.h b/iscsiuio/src/unix/options.h index 63b8635..873a98a 100644 --- a/iscsiuio/src/unix/options.h +++ b/iscsiuio/src/unix/options.h @@ -86,7 +86,7 @@ #define DEBUG_ON 0x2 #define INVALID_FD -1 -#define INVALID_THREAD -1 +#define INVALID_THREAD (pthread_t)-1 #define INVALID_HOST_NO -1 struct options { |