diff --git a/CMakeLists.txt b/CMakeLists.txt
index 028706ce5551102285286ed5d6b7792aeef4b15c..070213920313fa04ae1bcec533edbb29655643e5 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -5,6 +5,7 @@ IF(POLICY CMP0022)
 ENDIF(POLICY CMP0022)
 
 SET(PROJ_NAME Jami)
+ADD_DEFINITIONS(-DENABLE_LIBWRAP=true)
 option(RELEASE_TYPE "RELEASE_TYPE" "website")
 
 # To build nighlies we need to update RING_VERSION with an optional command line arg