From: Matt Kimball Date: Wed, 13 Feb 2019 17:33:29 +0000 (-0800) Subject: Link portability/error.c with mtr-packet when missing on MacOS X-Git-Tag: v0.93~8^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F288%2Fhead;p=thirdparty%2Fmtr.git Link portability/error.c with mtr-packet when missing on MacOS Change 817f171d broke the MacOS build. Change 817f171d converted the error reporting in mtr-packet from perror() to error(). That's fine, but error() is missing on MacOS. We already had portability/error.c for this reason, but that was previously only linked into the mtr binary, not mtr-packet. This change also links portability/error.c with mtr-packet, when error() is missing from the OS. --- diff --git a/Makefile.am b/Makefile.am index 23ac1fc..ed92f67 100644 --- a/Makefile.am +++ b/Makefile.am @@ -103,6 +103,13 @@ mtr_packet_SOURCES = \ mtr_packet_LDADD = $(CAP_LIBS) +if WITH_ERROR +mtr_packet_SOURCES += \ + portability/error.h \ + portability/error.c +endif + + if CYGWIN mtr_packet_SOURCES += \