From 1e101a7cbeea64081486e57feb5cb92cc5c9767b Mon Sep 17 00:00:00 2001
From: Lukas Braun <lukas.braun@fau.de>
Date: Sat, 4 Mar 2017 00:46:27 +0100
Subject: [PATCH] Use correct macro for getaddrinfo in glibc >= 2.22

---
 Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Makefile b/Makefile
index 05516e0..e1f9761 100644
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,4 @@
-CFLAGS += -std=c11 -D_POSIX_SOURCE -Wall -Wconversion -fPIC
+CFLAGS += -std=c11 -D_POSIX_C_SOURCE=201112 -Wall -Wconversion -fPIC
 
 goatherd: goatherd.go
 	go build goatherd.go
-- 
GitLab