From 67ce3bfa0676887bb86e2080643018c0ca473a04 Mon Sep 17 00:00:00 2001 From: Andrzej Rybczak Date: Thu, 18 Dec 2008 11:10:03 +0100 Subject: [PATCH] fix compilation if __linux__ and __FreeBSD__ is not defined --- src/configuration.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/configuration.cpp b/src/configuration.cpp index 0c830e9..676dc9d 100644 --- a/src/configuration.cpp +++ b/src/configuration.cpp @@ -167,7 +167,6 @@ bool CheckFiles(ScrobbyConfig &conf) std::ostringstream proc_file; proc_file << "/proc/" << pid << std::ends; if (!(stat(proc_file.str().c_str(), &stat_pid) == -1 && errno == ENOENT)) - { # elif defined(__FreeBSD__) char kvm_errbuf[_POSIX2_LINE_MAX]; kvm_t *hkvm; @@ -185,8 +184,8 @@ bool CheckFiles(ScrobbyConfig &conf) std::cerr << "kvm_openfiles failed with message:" << std::endl << kvm_errbuf << std::endl; } if (cnt >= 1) - { # endif + { std::cerr << "scrobby is already running with PID " << pid << "!\n"; return false; } -- 2.11.4.GIT