From 744d582c5fee667149a0f15a221be808cabb9c72 Mon Sep 17 00:00:00 2001 From: bolvan Date: Sat, 18 May 2019 07:42:27 +0300 Subject: [PATCH] mdig : fix compilation on some gcc versions --- mdig/Makefile | 2 +- mdig/mdig.c | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/mdig/Makefile b/mdig/Makefile index 588344d..85b45c8 100644 --- a/mdig/Makefile +++ b/mdig/Makefile @@ -1,6 +1,6 @@ CC ?= gcc CFLAGS += -s -O3 -LIBS = +LIBS = -lpthread SRC_FILES = *.c all: mdig diff --git a/mdig/mdig.c b/mdig/mdig.c index 3822f9a..3996b00 100644 --- a/mdig/mdig.c +++ b/mdig/mdig.c @@ -3,6 +3,8 @@ // ip list >stdout // errors, verbose >stderr +#define _GNU_SOURCE + #include #include #include