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

"saravanan.s" <[email protected]> Wed, 22 Jan 2025 17:43:14 +0530
Newsgroups dev.linux.lists.ofono
Message-ID <[email protected]>
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 --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>