@@ -39,3 +39,7 @@ if ( CMAKE_SYSTEM MATCHES Linux )
message ("-- Building start-stop-daemon")
HPCC_ADD_SUBDIRECTORY (start-stop-daemon)
endif()
+
+if (APPLE)
+ HPCC_ADD_SUBDIRECTORY (start-stop-daemon)
+endif (APPLE)
@@ -39,6 +39,8 @@
# define OSFreeBSD
#elif defined(__NetBSD__)
# define OSNetBSD
+#elif defined(__APPLE__)
+# define OSLinux
#else
# error Unknown architecture - cannot build start-stop-daemon
#endif
@@ -124,6 +126,10 @@
#define HAVE_IOPRIO_SET
+#if defined(__APPLE__)
+#undef _POSIX_PRIORITY_SCHEDULING
+#endif
enum {
IOPRIO_WHO_PROCESS = 1,
IOPRIO_WHO_PGRP,