X-Git-Url: http://git.chise.org/gitweb/?p=chise%2Fxemacs-chise.git.1;a=blobdiff_plain;f=src%2Fsyssignal.h;h=8b2747c38825ad8cbc0eec00064e24a17dc4a193;hp=cacf07bb6fafc9542ccd44acd44de67d6716a188;hb=14ac73276fa152e8f0b74602792afc0b9c3236c9;hpb=3e447015251ce6dcde843cbed10d9033d5538622 diff --git a/src/syssignal.h b/src/syssignal.h index cacf07b..8b2747c 100644 --- a/src/syssignal.h +++ b/src/syssignal.h @@ -209,13 +209,13 @@ signal_handler_t sys_do_signal (int signal_number, signal_handler_t action); /* On bsd, [man says] kill does not accept a negative number to kill a pgrp. Must do that using the killpg call. */ -#ifdef BSD -#define EMACS_KILLPG(gid, signo) killpg (gid, signo) +#ifdef HAVE_KILLPG +#define EMACS_KILLPG(pid, signo) killpg (pid, signo) #else -#ifdef WINDOWSNT -#define EMACS_KILLPG(gid, signo) kill (gid, signo) +#ifdef WIN32_NATIVE +#define EMACS_KILLPG(pid, signo) kill (pid, signo) #else -#define EMACS_KILLPG(gid, signo) kill (-(gid), signo) +#define EMACS_KILLPG(pid, signo) kill (-(pid), signo) #endif #endif @@ -234,14 +234,14 @@ extern const char *sys_siglist[]; SIGTYPE memory_warning_signal (int sig); #endif -#ifdef WINDOWSNT +#ifdef WIN32_NATIVE /* Prototypes for signal functions, see nt.c */ -typedef void (__cdecl *msw_sighandler) (int); -msw_sighandler msw_sigset (int sig, msw_sighandler handler); -int msw_sighold (int nsig); -int msw_sigrelse (int nsig); -int msw_sigpause (int nsig); -int msw_raise (int nsig); -#endif /* _WIN32 */ +typedef void (__cdecl *mswindows_sighandler) (int); +mswindows_sighandler mswindows_sigset (int sig, mswindows_sighandler handler); +int mswindows_sighold (int nsig); +int mswindows_sigrelse (int nsig); +int mswindows_sigpause (int nsig); +int mswindows_raise (int nsig); +#endif /* WIN32_NATIVE */ #endif /* INCLUDED_syssignal_h_ */