diff options
Diffstat (limited to 'dwmblocks.c')
-rw-r--r-- | dwmblocks.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/dwmblocks.c b/dwmblocks.c index 5d7f6cd..378c111 100644 --- a/dwmblocks.c +++ b/dwmblocks.c @@ -20,7 +20,7 @@ void buttonhandler(int sig, siginfo_t *si, void *ucontext); void replace(char *str, char old, char new); void remove_all(char *str, char to_remove); void getcmds(int time); -#ifndef BSD +#ifndef ___OpenBSD___ void getsigcmds(int signal); void setupsignals(); void sighandler(int signum); @@ -134,7 +134,7 @@ void getcmds(int time) } } -#ifndef BSD +#ifndef ___OpenBSD___ void getsigcmds(int signal) { const Block *current; @@ -227,7 +227,7 @@ void pstdout() void statusloop() { -#ifndef BSD +#ifndef ___OpenBSD___ setupsignals(); #endif // first figure out the default wait interval by finding the @@ -261,7 +261,7 @@ void statusloop() } } -#ifndef BSD +#ifndef ___OpenBSD___ void sighandler(int signum) { getsigcmds(signum-SIGRTMIN); @@ -283,7 +283,7 @@ void buttonhandler(int sig, siginfo_t *si, void *ucontext) break; } char shcmd[1024]; - sprintf(shcmd,"%s && kill -%d %d",current->command, current->signal+34,process_id); + sprintf(shcmd,"%s && kill -%d %d",current->command, current->signal+SIGRTMIN,process_id); char *command[] = { "/bin/sh", "-c", shcmd, NULL }; setenv("BLOCK_BUTTON", button, 1); setsid(); |