diff --git a/configure.ac b/configure.ac index 70bcbe1f..a9619bcd 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 6a24e180..187ca928 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,7 +15,8 @@ Bool GetCommandForPid(int pid, char ***argv, int *argc) if (!notified) { wwarning(_("%s is not implemented on this platform; " - "notify wmaker-dev@lists.windowmaker.info"), __FUNCTION__); + "tell wmaker-dev@lists.windowmaker.info you are running \"%s\""), + __FUNCTION__, STUB_HINT); notified = 1; }