summaryrefslogtreecommitdiff
path: root/wm/icewm/patches/patch-ae
blob: 03da865c2894ebee5327a4f53168acb548ae034d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
$NetBSD: patch-ae,v 1.3 2002/08/22 10:58:35 martti Exp $

--- src/wmtaskbar.cc.orig	Thu May 16 05:00:02 2002
+++ src/wmtaskbar.cc	Sat May 25 09:41:09 2002
@@ -288,7 +288,11 @@
     } else
         fClock = 0;
 #ifdef CONFIG_APPLET_APM
+#ifdef __linux__
     if (taskBarShowApm && access("/proc/apm", 0) == 0) {
+#elif defined(__NetBSD__)
+    if (taskBarShowApm && access(APMDEV, 0) == 0) {
+#endif
         fApm = new YApm(this);
         if (fApm->height() > ht) ht = fApm->height();
     } else