Skip to content

Commit

Permalink
Add missing includes
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
RincewindsHat committed Feb 23, 2024
1 parent 42c58dc commit c363d2d
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions check_interfaces.c
Original file line number Diff line number Diff line change
@@ -1,9 +1,18 @@


// This one is needed on FreeBSD and it has to be before the others or at least some of them
#include <getopt.h>


#include "snmp_bulkget.h"
#include "utils.h"
#include <net-snmp/net-snmp-config.h>
#include <stdbool.h>
#include <sys/time.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netdb.h>

/*
* text strings to output in the perfdata
Expand Down

0 comments on commit c363d2d

Please sign in to comment.