--- src/mtserver/Makefile.in.orig	2024-03-21 13:58:11 UTC
+++ src/mtserver/Makefile.in
@@ -16,7 +16,7 @@
 
 CC      = @CC@ 
 CXX     = @CXX@ 
-CFLAGS  = @CFLAGS@ -I. -I.. -Wall -Wextra -Wmissing-prototypes -Wstrict-prototypes -Wold-style-definition
+CFLAGS  = @CFLAGS@ -D__BSD_VISIBLE=1 -I. -I.. -Wall -Wextra -Wmissing-prototypes -Wstrict-prototypes -Wold-style-definition
 CXXFLAGS= @CXXFLAGS@ -I. -I.. -Wall -Wextra -Wmissing-declarations
 CPPFLAGS= @CPPFLAGS@
 LDFLAGS = @LDFLAGS@  # -Wl,-z,relro -Wl,-z,now
