1
0
mirror of https://github.com/gryf/wmaker.git synced 2025-12-19 04:20:27 +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 ================================
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)

View File

@@ -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;
}