changeset 504:38c6713f5b7f

Irccd: fix macOS compile
author David Demelier <markand@malikania.fr>
date Wed, 11 Oct 2017 10:18:55 +0200
parents ecd9305c3e97
children e304b35d9b5b
files libcommon/irccd/system.cpp libirccd/CMakeLists.txt
diffstat 2 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libcommon/irccd/system.cpp	Fri Oct 06 12:44:44 2017 +0200
+++ b/libcommon/irccd/system.cpp	Wed Oct 11 10:18:55 2017 +0200
@@ -198,7 +198,7 @@
 #elif defined(IRCCD_SYSTEM_MAC)
     char path[PROC_PIDPATHINFO_MAXSIZE + 1] = {0};
 
-    if ((proc_pidpath(getpid(), path, sizeof (path) - 1) == 0)
+    if ((proc_pidpath(getpid(), path, sizeof (path) - 1)) == 0)
         throw std::runtime_error(std::strerror(errno));
 
     result = path;
--- a/libirccd/CMakeLists.txt	Fri Oct 06 12:44:44 2017 +0200
+++ b/libirccd/CMakeLists.txt	Wed Oct 11 10:18:55 2017 +0200
@@ -55,6 +55,7 @@
     LIBRARIES
         Boost::timer
         $<$<BOOL:${IRCCD_SYSTEM_LINUX}>:dl>
+        $<$<BOOL:${IRCCD_SYSTEM_MAC}>:resolv>
         extern-ircclient
         libcommon
     PUBLIC_INCLUDES