From f54da716ac0866bc853b5b54c0217e063ef8e8ae Mon Sep 17 00:00:00 2001 From: Matt Kimball Date: Wed, 13 Feb 2019 09:33:29 -0800 Subject: [PATCH] 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. --- Makefile.am | 7 +++++++ 1 file changed, 7 insertions(+) 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 += \ -- 2.47.2