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
This commit is contained in:
James Prestwood 2024-01-04 04:58:26 -08:00 committed by Denis Kenzior
parent aaf1d91d51
commit 705898d1db
1 changed files with 1 additions and 0 deletions

View File

@ -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>