Skip to content

Commit 7107d08

Browse files
committed
DE (DragonFly): fix build
1 parent 4c34f99 commit 7107d08

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/detection/de/de_linux.c

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,18 @@
1212
#include <ctype.h>
1313
#ifdef __FreeBSD__
1414
#include <paths.h>
15+
#ifndef _PATH_LOCALBASE
16+
#define _PATH_LOCALBASE "/usr/local"
17+
#endif
18+
#elif __OpenBSD__
19+
#define _PATH_LOCALBASE "/usr/local"
20+
#elif __NetBSD__
21+
#define _PATH_LOCALBASE "/usr/pkg"
1522
#endif
1623

1724
static void getKDE(FFstrbuf* result, FFDEOptions* options)
1825
{
19-
#ifdef __FreeBSD__
26+
#ifdef _PATH_LOCALBASE
2027
ffParsePropFile(_PATH_LOCALBASE "/share/wayland-sessions/plasma.desktop", "X-KDE-PluginInfo-Version =", result);
2128
if(result->length == 0)
2229
ffParsePropFile(_PATH_LOCALBASE "/share/xsessions/plasmax11.desktop", "X-KDE-PluginInfo-Version =", result);

0 commit comments

Comments
 (0)