--- a/corelib/socket.cpp
+++ b/corelib/socket.cpp
@@ -48,13 +48,6 @@
 
 #if defined(HAVE_SYS_FILIO_H)
 #include <sys/filio.h>
-#endif
-
-#ifdef  HAVE_RULI_H
-extern "C" {
-#include <ruli.h>
-#define getaddrinfo(h, s, hint, res) ruli_getaddrinfo(h, s, hint, res)
-}
 #endif
 
 #if defined(HAVE_POLL) && defined(POLLRDNORM)