From a5ffc6dc73c2ee4c4eaa813418453cd3094c33dd Mon Sep 17 00:00:00 2001 From: Chris Friedt Date: Sun, 30 Oct 2022 08:25:10 -0400 Subject: [PATCH] simplelink: wifi: avoid re-declaring pthread_self() The normative spec says this returns `pthread_t`, not `void *`. It's probably better to simply `#include ` outside of this file explicitly (due to current non-standard prefixed path in Zerphy) than to re-declare it with a potentially conflicting signature. Signed-off-by: Chris Friedt --- simplelink/source/ti/drivers/net/wifi/source/driver.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/simplelink/source/ti/drivers/net/wifi/source/driver.h b/simplelink/source/ti/drivers/net/wifi/source/driver.h index 2559720..6900e23 100644 --- a/simplelink/source/ti/drivers/net/wifi/source/driver.h +++ b/simplelink/source/ti/drivers/net/wifi/source/driver.h @@ -460,7 +460,7 @@ extern void _SlDrvSleep(_u16 DurationInMsec); #endif #if defined(SL_PLATFORM_MULTI_THREADED) -extern void * pthread_self(void); +/* Note: pthread_self() previously declared here */ #endif extern _SlReturnVal_t _SlNetAppHandleAsync_DnsGetHostByName(void *pVoidBuf);