]> git.ipfire.org Git - thirdparty/mtr.git/commitdiff
Link portability/error.c with mtr-packet when missing on MacOS 288/head
authorMatt Kimball <matt.kimball@gmail.com>
Wed, 13 Feb 2019 17:33:29 +0000 (09:33 -0800)
committerMatt Kimball <matt.kimball@gmail.com>
Wed, 13 Feb 2019 17:33:29 +0000 (09:33 -0800)
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

index 23ac1fc6e78a46305297989e655bcb6106663674..ed92f672623de86055aa107baf62827b74905b4e 100644 (file)
@@ -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 += \