* [PATCH] monitor: include unistd.h in main.c
@ 2024-01-04 12:58 James Prestwood
2024-01-04 18:18 ` Denis Kenzior
0 siblings, 1 reply; 2+ messages in thread
From: James Prestwood @ 2024-01-04 12:58 UTC (permalink / raw)
To: iwd; +Cc: James Prestwood
This fixes a build break on some systems, specifically the
raspberry Pi 3 (ARM):
monitor/main.c: In function ‘open_packet’:
monitor/main.c:176:3: error: implicit declaration of function ‘close’; did you mean ‘pclose’? [-Werror=implicit-function-declaration]
176 | close(fd);
| ^~~~~
| pclose
---
monitor/main.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/monitor/main.c b/monitor/main.c
index e9384e1b..8f354d52 100644
--- a/monitor/main.c
+++ b/monitor/main.c
@@ -32,6 +32,7 @@
#include <string.h>
#include <getopt.h>
#include <signal.h>
+#include <unistd.h>
#include <arpa/inet.h>
#include <sys/socket.h>
#include <linux/genetlink.h>
--
2.34.1
^ permalink raw reply related [flat|nested] 2+ messages in thread* Re: [PATCH] monitor: include unistd.h in main.c
2024-01-04 12:58 [PATCH] monitor: include unistd.h in main.c James Prestwood
@ 2024-01-04 18:18 ` Denis Kenzior
0 siblings, 0 replies; 2+ messages in thread
From: Denis Kenzior @ 2024-01-04 18:18 UTC (permalink / raw)
To: James Prestwood, iwd
Hi James,
On 1/4/24 06:58, James Prestwood wrote:
> This fixes a build break on some systems, specifically the
> raspberry Pi 3 (ARM):
>
> monitor/main.c: In function ‘open_packet’:
> monitor/main.c:176:3: error: implicit declaration of function ‘close’; did you mean ‘pclose’? [-Werror=implicit-function-declaration]
> 176 | close(fd);
> | ^~~~~
> | pclose
> ---
> monitor/main.c | 1 +
> 1 file changed, 1 insertion(+)
>
Applied, thanks.
Regards,
-Denis
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-01-04 18:18 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-01-04 12:58 [PATCH] monitor: include unistd.h in main.c James Prestwood
2024-01-04 18:18 ` Denis Kenzior
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox