diff mbox series

voicecall: Fix implicit-function-declaration fatal error with GCC-14

Message ID 20250122114507.531932-1-saravanan.s@lge.com (mailing list archive)
State Superseded
Headers show
Series voicecall: Fix implicit-function-declaration fatal error with GCC-14 | expand

Commit Message

saravanan.s Jan. 22, 2025, 11:45 a.m. UTC
Address below issue by adding missing header:
ofono-2.4/drivers/hfpmodem/voicecall.c:1081:17:
error: implicit declaration of function 'usleep';
did you mean 'g_usleep'? [-Wimplicit-function-declaration]
---
 drivers/hfpmodem/voicecall.c | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

diff --git a/drivers/hfpmodem/voicecall.c b/drivers/hfpmodem/voicecall.c
index 5a84db78..949337dc 100644
--- a/drivers/hfpmodem/voicecall.c
+++ b/drivers/hfpmodem/voicecall.c
@@ -12,6 +12,7 @@ 
 #include <string.h>
 #include <stdlib.h>
 #include <stdio.h>
+#include <unistd.h>
 
 #include <glib.h>
 #include <gatchat.h>