From 1a68e615e1a17f519c73644ebc607de12a3df710 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Sun, 14 Jun 2015 20:29:21 +0200 Subject: Fix several issues on freebsd MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Slávek Banko (cherry picked from commit e469e42c76000b70aebaf838f5a3c4ded184b0e3) --- kdeprint/cups/cupsdconf2/cupsddialog.cpp | 2 +- kdeprint/cups/kmcupsmanager.cpp | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'kdeprint/cups') diff --git a/kdeprint/cups/cupsdconf2/cupsddialog.cpp b/kdeprint/cups/cupsdconf2/cupsddialog.cpp index 9863a6146..de1f07027 100644 --- a/kdeprint/cups/cupsdconf2/cupsddialog.cpp +++ b/kdeprint/cups/cupsdconf2/cupsddialog.cpp @@ -71,7 +71,7 @@ extern "C" int getServerPid() { -#if defined(__OpenBSD__) +#if defined(__OpenBSD__) || defined(__FreeBSD__) TQProcess *proc = new TQProcess(); proc->addArgument("pgrep"); proc->addArgument("cupsd"); diff --git a/kdeprint/cups/kmcupsmanager.cpp b/kdeprint/cups/kmcupsmanager.cpp index b1c776004..02dfeb77e 100644 --- a/kdeprint/cups/kmcupsmanager.cpp +++ b/kdeprint/cups/kmcupsmanager.cpp @@ -102,7 +102,7 @@ TQString KMCupsManager::driverDirectory() { TQString d = cupsInstallDir(); if (d.isEmpty()) { -#ifdef __OpenBSD__ +#if defined(__OpenBSD__) || defined(__FreeBSD__) d = "/usr/local"; #else d = "/usr"; @@ -110,7 +110,7 @@ TQString KMCupsManager::driverDirectory() } d.append("/share/cups/model"); // raw foomatic support -#ifdef __OpenBSD__ +#if defined(__OpenBSD__) || defined(__FreeBSD__) d.append(":/usr/local/share/foomatic/db/source"); #else d.append(":/usr/share/foomatic/db/source"); @@ -640,7 +640,7 @@ DrMain* KMCupsManager::loadMaticDriver(const TQString& drname) { TQStringList comps = TQStringList::split('/', drname, false); TQString tmpFile = locateLocal("tmp", "foomatic_" + kapp->randomString(8)); -#ifdef __OpenBSD__ +#if defined(__OpenBSD__) || defined(__FreeBSD__) TQString PATH = getenv("PATH") + TQString::fromLatin1(":/usr/local/bin:/usr/sbin:/usr/local/sbin:/opt/sbin:/opt/local/sbin"); #else TQString PATH = getenv("PATH") + TQString::fromLatin1(":/usr/sbin:/usr/local/sbin:/opt/sbin:/opt/local/sbin"); @@ -959,7 +959,7 @@ void KMCupsManager::exportDriver() { TQString path = cupsInstallDir(); if (path.isEmpty()) { -#ifdef __OpenBSD__ +#if defined(__OpenBSD__) || defined(__FreeBSD__) path = "/usr/local/share/cups"; #else path = "/usr/share/cups"; -- cgit v1.2.1