stumpwm-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[STUMP] [PATCH] Added a fix to detect linux under clisp


From: Raffael Mancini
Subject: [STUMP] [PATCH] Added a fix to detect linux under clisp
Date: Tue, 29 Jul 2008 19:05:29 +0200
User-agent: Wanderlust/2.14.1 (Bad Medicine-pre) SEMI/1.14.6 (Maruoka) FLIM/1.14.8 (Shijō) APEL/10.7 Emacs/23.0.60 (i686-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO)

Hi,
battery-portable.lisp checks for :linux in *features* which is not defined in 
clisp.

I'll also file a bug report to clisp if you think it's a bug with clisp.

Greetings,
Raffael
(sepisultrum)

---
 contrib/battery-portable.lisp |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/contrib/battery-portable.lisp b/contrib/battery-portable.lisp
index 1cd4617..dae7005 100644
--- a/contrib/battery-portable.lisp
+++ b/contrib/battery-portable.lisp
@@ -46,6 +46,11 @@
           ))
 (in-package :stumpwm.contrib.battery-portable)
 
+;;; fix clisp *features* to include linux on linux systems
+#+clisp
+(if (string= "Linux" (string-trim '(#\Newline) (run-shell-command "uname" t)))
+    (push :linux *features*))
+
 ;;; Configuration
 
 (defvar *refresh-time* 5
-- 
1.5.6.2




reply via email to

[Prev in Thread] Current Thread [Next in Thread]