monitor: include unistd.h in main.c
PATCH 1/1 monitor: include unistd.h in main.c
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(+)monitor/main.c +1 -0
@@ -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>
Signature · 1 line
2.34.1
Denis Kenzior
AppliedHi James,
Quoted 12 lines · 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(+)
Applied, thanks.
Regards,
-Denis