Skip to content

Commit d203fac

Browse files
Merge pull request #29 from NETWAYS/correct_includes
Correct includes
2 parents a708e55 + c363d2d commit d203fac

File tree

4 files changed

+28
-3
lines changed

4 files changed

+28
-3
lines changed

.dockerignore

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,21 @@
66
!/configure
77
!/configure.ac
88
!/install-sh
9+
!/Makefile.am
910
!/Makefile.in
1011
!/snmp_bulkget.c
1112
!/snmp_bulkget.h
1213
!/utils.c
1314
!/utils.h
15+
!/check_interfaces.c
16+
!/AUTHORS
17+
!/NEWS
18+
!/COPYING
19+
!/config.guess
20+
!/config.sub
21+
!/missing
22+
!/compile
23+
!/ChangeLog
24+
!/INSTALL
25+
!/depcomp
26+
!/README.md

Dockerfile

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,20 @@ ONBUILD ENV DEBIAN_FRONTEND=noninteractive
77
RUN apt-get update \
88
&& apt-get install -y \
99
build-essential \
10+
autoconf \
1011
libsnmp-dev \
1112
&& rm -rf /var/lib/apt/lists/*
1213
COPY . .
13-
RUN ./configure --libexecdir=/src \
14+
COPY ./README.md ./README
15+
RUN ls -R \
16+
&& ./configure --libexecdir=/src \
1417
&& make $target
1518

1619
FROM debian:stable-slim
1720
ONBUILD ENV DEBIAN_FRONTEND=noninteractive
1821
RUN apt-get update \
1922
&& apt-get install -y \
20-
libsnmp30 \
23+
libsnmp40 \
2124
&& rm -rf /var/lib/apt/lists/*
2225
COPY --from=0 /src/check_interfaces /check_interfaces
2326

Makefile.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ am__define_uniq_tagged_files = \
161161
done | $(am__uniquify_input)`
162162
AM_RECURSIVE_TARGETS = cscope
163163
am__DIST_COMMON = $(srcdir)/Makefile.in AUTHORS COPYING ChangeLog \
164-
INSTALL NEWS README.md compile config.guess config.sub depcomp \
164+
INSTALL NEWS README compile config.guess config.sub depcomp \
165165
install-sh missing
166166
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
167167
distdir = $(PACKAGE)-$(VERSION)

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)