From aadf9ba1040ee6ac3347bd7627d311f6e01a0af0 Mon Sep 17 00:00:00 2001 From: Ruben Kerkhof Date: Wed, 16 May 2018 13:24:55 +0200 Subject: [PATCH] Fix make distcheck on Mac OS CC src/libcollectdclient/libcollectdclient_la-network_parse.lo ../../src/libcollectdclient/network_parse.c:49:10: fatal error: 'stdendian.h' file not found ^~~~~~~~~~~~~ 1 error generated. Fixes #2608 --- Makefile.am | 3 ++- src/{ => libcollectdclient/collectd}/stdendian.h | 0 src/libcollectdclient/network_parse.c | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) rename src/{ => libcollectdclient/collectd}/stdendian.h (100%) diff --git a/Makefile.am b/Makefile.am index e37716f6..b944b412 100644 --- a/Makefile.am +++ b/Makefile.am @@ -483,7 +483,8 @@ libcollectdclient_la_SOURCES = \ src/libcollectdclient/network.c \ src/libcollectdclient/network_buffer.c \ src/libcollectdclient/network_parse.c \ - src/libcollectdclient/server.c + src/libcollectdclient/server.c \ + src/libcollectdclient/collectd/stdendian.h libcollectdclient_la_CPPFLAGS = \ $(AM_CPPFLAGS) \ -I$(srcdir)/src/libcollectdclient \ diff --git a/src/stdendian.h b/src/libcollectdclient/collectd/stdendian.h similarity index 100% rename from src/stdendian.h rename to src/libcollectdclient/collectd/stdendian.h diff --git a/src/libcollectdclient/network_parse.c b/src/libcollectdclient/network_parse.c index 34ea2194..a8f6bd61 100644 --- a/src/libcollectdclient/network_parse.c +++ b/src/libcollectdclient/network_parse.c @@ -46,7 +46,7 @@ #elif HAVE_SYS_ENDIAN_H #include #else /* fallback */ -#include "stdendian.h" +#include "collectd/stdendian.h" #endif #if HAVE_GCRYPT_H -- 2.11.0