pinosaur
/
dwmblocks.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
377f990
)
Added ifndef for openbsd compatibility. SIGRTMIN is not defined on
author
Aidan
<aidan@ArthurOBSD.localdomain>
Mon, 16 Dec 2019 21:35:29 +0000
(14:35 -0700)
committer
Aidan
<aidan@ArthurOBSD.localdomain>
Mon, 16 Dec 2019 21:35:29 +0000
(14:35 -0700)
OpenBSD.
dwmblocks.c
patch
|
blob
|
history
diff --git
a/dwmblocks.c
b/dwmblocks.c
index
ad8e91c
..
88bdfb0
100644
(file)
--- a/
dwmblocks.c
+++ b/
dwmblocks.c
@@
-16,12
+16,14
@@
typedef struct {
void sighandler(int num);
void replace(char *str, char old, char new);
void getcmds(int time);
void sighandler(int num);
void replace(char *str, char old, char new);
void getcmds(int time);
+#ifndef __OpenBSD__
void getsigcmds(int signal);
void setupsignals();
void getsigcmds(int signal);
void setupsignals();
+void sighandler(int signum);
+#endif
int getstatus(char *str, char *last);
void setroot();
void statusloop();
int getstatus(char *str, char *last);
void setroot();
void statusloop();
-void sighandler(int signum);
void termhandler(int signum);
void termhandler(int signum);
@@
-72,6
+74,7
@@
void getcmds(int time)
}
}
}
}
+#ifndef __OpenBSD__
void getsigcmds(int signal)
{
const Block *current;
void getsigcmds(int signal)
{
const Block *current;
@@
-92,6
+95,7
@@
void setupsignals()
}
}
}
}
+#endif
int getstatus(char *str, char *last)
{
int getstatus(char *str, char *last)
{
@@
-128,7
+132,9
@@
void pstdout()
void statusloop()
{
void statusloop()
{
+#ifndef __OpenBSD__
setupsignals();
setupsignals();
+#endif
int i = 0;
getcmds(-1);
while(statusContinue)
int i = 0;
getcmds(-1);
while(statusContinue)
@@
-140,12
+146,13
@@
void statusloop()
}
}
}
}
-
+#ifndef __OpenBSD__
void sighandler(int signum)
{
getsigcmds(signum-SIGRTMIN);
writestatus();
}
void sighandler(int signum)
{
getsigcmds(signum-SIGRTMIN);
writestatus();
}
+#endif
void termhandler(int signum)
{
void termhandler(int signum)
{