Skip to content

Commit c363d2d

Browse files
committed
Add missing includes
This commit adds some missing includes in the main program file to avoid complaints of the compiler. Additionaly getopt.h is needed to build this on FreeBSD.
1 parent 42c58dc commit c363d2d

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

check_interfaces.c

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,18 @@
1+
2+
3+
// This one is needed on FreeBSD and it has to be before the others or at least some of them
4+
#include <getopt.h>
5+
6+
17
#include "snmp_bulkget.h"
28
#include "utils.h"
39
#include <net-snmp/net-snmp-config.h>
410
#include <stdbool.h>
511
#include <sys/time.h>
612
#include <unistd.h>
13+
#include <sys/types.h>
14+
#include <sys/socket.h>
15+
#include <netdb.h>
716

817
/*
918
* text strings to output in the perfdata

0 commit comments

Comments
 (0)