29 lines
858 B
Diff
29 lines
858 B
Diff
From eb651847e8178eb2204da8b51ca2f928ccbdcbdc Mon Sep 17 00:00:00 2001
|
|
From: wguanghao <wuguanghao3@huawei.com>
|
|
Date: Tue, 28 Nov 2023 16:35:20 +0800
|
|
Subject: [PATCH] fix build error
|
|
|
|
Fix build failure caused by new compilation param.
|
|
|
|
Signed-by-off Wu Guanghao <wuguanghao3@huawei.com>
|
|
---
|
|
libmultipath/util.c | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/libmultipath/util.c b/libmultipath/util.c
|
|
index 2592cac..bbc2a06 100644
|
|
--- a/libmultipath/util.c
|
|
+++ b/libmultipath/util.c
|
|
@@ -279,7 +279,7 @@ setup_thread_attr(pthread_attr_t *attr, size_t stacksize, int detached)
|
|
|
|
ret = pthread_attr_init(attr);
|
|
assert(ret == 0);
|
|
- if (stacksize < PTHREAD_STACK_MIN)
|
|
+ if (stacksize < (unsigned long)PTHREAD_STACK_MIN)
|
|
stacksize = PTHREAD_STACK_MIN;
|
|
ret = pthread_attr_setstacksize(attr, stacksize);
|
|
assert(ret == 0);
|
|
--
|
|
2.23.0
|
|
|