Skip to content

Commit

Permalink
Remove daemon features on macOS for compatiblity (inotify)
Browse files Browse the repository at this point in the history
  • Loading branch information
mhsjlw authored and MCMrARM committed Jun 17, 2018
1 parent ea86ada commit ef1f3c1
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion client/src/daemon_launcher.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,13 @@
#include <cstdio>
#include <unistd.h>
#include <sys/stat.h>
#include <sys/inotify.h>
#include <FileUtil.h>
#include <log.h>

#ifndef __APPLE__
#include <sys/inotify.h>
#endif

using namespace daemon_utils;

void daemon_launcher::start() {
Expand All @@ -25,6 +28,7 @@ void daemon_launcher::start() {
}
}

#ifndef __APPLE__
void daemon_launcher::open(simpleipc::client::service_client_impl& impl) {
struct stat s;
stat(service_path.c_str(), &s);
Expand Down Expand Up @@ -63,3 +67,4 @@ void daemon_launcher::open(simpleipc::client::service_client_impl& impl) {

impl.open(service_path);
}
#endif

0 comments on commit ef1f3c1

Please sign in to comment.