telepathy-qt: CMake: Fixed deprecated _BSD_SOURCE.

Alexandr Akulich kaffeine at kemper.freedesktop.org
Sun Jun 7 11:46:43 PDT 2015


Module: telepathy-qt
Branch: master
Commit: 2a460afdbd0cb39d8dcecaf6cea5ce9ce7d3216b
URL:    http://cgit.freedesktop.org/telepathy/telepathy-qt/commit/?id=2a460afdbd0cb39d8dcecaf6cea5ce9ce7d3216b

Author: Niels Ole Salscheider <niels_ole at salscheider-online.de>
Date:   Fri Jun  5 12:47:13 2015 +0200

CMake: Fixed deprecated _BSD_SOURCE.

Since glibc-2.20 _DEFAULT_SOURCE definition is also required.

Reviewed-by: Alexandr Akulich

---

 cmake/modules/TelepathyDefaults.cmake |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cmake/modules/TelepathyDefaults.cmake b/cmake/modules/TelepathyDefaults.cmake
index d34b24d..dc98697 100644
--- a/cmake/modules/TelepathyDefaults.cmake
+++ b/cmake/modules/TelepathyDefaults.cmake
@@ -108,7 +108,7 @@ if(CMAKE_COMPILER_IS_GNUCXX)
     endif(${NOT_RELEASE} EQUAL 1)
 
     if(CMAKE_SYSTEM_NAME MATCHES Linux)
-        add_definitions(-D_BSD_SOURCE)
+        add_definitions(-D_BSD_SOURCE -D_DEFAULT_SOURCE)
     endif(CMAKE_SYSTEM_NAME MATCHES Linux)
 
     # Compiler coverage



More information about the telepathy-commits mailing list