1
0
mirror of https://github.com/gryf/wmaker.git synced 2025-12-19 20:38:08 +01:00

Add Cygwin to GCFB() (it is just like linux)

+ make stub give some clue
This commit is contained in:
Tamas TEVESZ
2010-03-26 00:19:27 +01:00
committed by Carlos R. Mafra
parent 28cbda550a
commit ea4645bc09
2 changed files with 8 additions and 1 deletions

View File

@@ -41,6 +41,7 @@ dnl Platform-specific Makefile setup
dnl ================================ dnl ================================
case "${host}" in case "${host}" in
*-*-cygwin*)
*-*-linux*) *-*-linux*)
WM_OSDEP="linux" WM_OSDEP="linux"
;; ;;
@@ -68,6 +69,7 @@ case "${host}" in
;; ;;
*) *)
WM_OSDEP="stub" WM_OSDEP="stub"
CFLAGS="-DSTUB_HINT=\\\"${host}\\\""
;; ;;
esac esac
AC_SUBST(WM_OSDEP) AC_SUBST(WM_OSDEP)

View File

@@ -3,6 +3,10 @@
#include "wconfig.h" #include "wconfig.h"
#ifndef STUB_HINT
#define STUB_HINT "(unknown)"
#endif
Bool GetCommandForPid(int pid, char ***argv, int *argc) Bool GetCommandForPid(int pid, char ***argv, int *argc)
{ {
*argv = NULL; *argv = NULL;
@@ -11,7 +15,8 @@ Bool GetCommandForPid(int pid, char ***argv, int *argc)
if (!notified) { if (!notified) {
wwarning(_("%s is not implemented on this platform; " 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; notified = 1;
} }