>From b0233cd271846362573f7bfff88fa7a178f12a4c Mon Sep 17 00:00:00 2001
From: Tamas TEVESZ <[email protected]>
Date: Fri, 26 Mar 2010 00:19:27 +0100
Subject: [PATCH] Add Cygwin to GCFB() (it is just like linux)

+ make stub give some clue
---
 configure.ac     |    2 ++
 src/osdep_stub.c |    8 +++++++-
 2 files changed, 9 insertions(+), 1 deletions(-)

diff --git a/configure.ac b/configure.ac
index 70bcbe1..a9619bc 100644
--- a/configure.ac
+++ b/configure.ac
@@ -41,6 +41,7 @@ dnl Platform-specific Makefile setup
 dnl ================================
 
 case "${host}" in
+       *-*-cygwin*)
        *-*-linux*)
                WM_OSDEP="linux"
        ;;
@@ -68,6 +69,7 @@ case "${host}" in
        ;;
        *)
                WM_OSDEP="stub"
+               CFLAGS="-DSTUB_HINT=\\\"${host}\\\""
        ;;
 esac
 AC_SUBST(WM_OSDEP)
diff --git a/src/osdep_stub.c b/src/osdep_stub.c
index 6a24e18..3c50191 100644
--- a/src/osdep_stub.c
+++ b/src/osdep_stub.c
@@ -3,6 +3,10 @@
 
 #include "wconfig.h"
 
+#ifndef STUB_HINT
+#define STUB_HINT      "(unknown)"
+#endif
+
 Bool GetCommandForPid(int pid, char ***argv, int *argc)
 {
        *argv = NULL;
@@ -11,9 +15,11 @@ Bool GetCommandForPid(int pid, char ***argv, int *argc)
 
        if (!notified) {
                wwarning(_("%s is not implemented on this platform; "
-                   "notify [email protected]"), __FUNCTION__);
+                   "tell [email protected] you are runnung 
\"%s\""),
+                   __FUNCTION__, STUB_HINT);
                notified = 1;
        }
 
        return False;
 }
+
-- 
1.7.0


-- 
[-]

mkdir /nonexistent
From b0233cd271846362573f7bfff88fa7a178f12a4c Mon Sep 17 00:00:00 2001
From: Tamas TEVESZ <[email protected]>
Date: Fri, 26 Mar 2010 00:19:27 +0100
Subject: [PATCH] Add Cygwin to GCFB() (it is just like linux)

+ make stub give some clue
---
 configure.ac     |    2 ++
 src/osdep_stub.c |    8 +++++++-
 2 files changed, 9 insertions(+), 1 deletions(-)

diff --git a/configure.ac b/configure.ac
index 70bcbe1..a9619bc 100644
--- a/configure.ac
+++ b/configure.ac
@@ -41,6 +41,7 @@ dnl Platform-specific Makefile setup
 dnl ================================
 
 case "${host}" in
+	*-*-cygwin*)
 	*-*-linux*)
 		WM_OSDEP="linux"
 	;;
@@ -68,6 +69,7 @@ case "${host}" in
 	;;
 	*)
 		WM_OSDEP="stub"
+		CFLAGS="-DSTUB_HINT=\\\"${host}\\\""
 	;;
 esac
 AC_SUBST(WM_OSDEP)
diff --git a/src/osdep_stub.c b/src/osdep_stub.c
index 6a24e18..3c50191 100644
--- a/src/osdep_stub.c
+++ b/src/osdep_stub.c
@@ -3,6 +3,10 @@
 
 #include "wconfig.h"
 
+#ifndef STUB_HINT
+#define STUB_HINT	"(unknown)"
+#endif
+
 Bool GetCommandForPid(int pid, char ***argv, int *argc)
 {
 	*argv = NULL;
@@ -11,9 +15,11 @@ Bool GetCommandForPid(int pid, char ***argv, int *argc)
 
 	if (!notified) {
 		wwarning(_("%s is not implemented on this platform; "
-		    "notify [email protected]"), __FUNCTION__);
+		    "tell [email protected] you are runnung \"%s\""),
+		    __FUNCTION__, STUB_HINT);
 		notified = 1;
 	}
 
 	return False;
 }
+
-- 
1.7.0

Reply via email to