summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsabetts <sabetts>2003-04-08 22:18:03 +0000
committersabetts <sabetts>2003-04-08 22:18:03 +0000
commite5f7f542045e9df69322ded56623a09506d79b8f (patch)
tree1003958060995d1dee98ca4f36c386ef8714c7bd
parent039f0764fe3c59bc9f7d0f03631ee0063b9dd9cf (diff)
downloadratpoison-e5f7f542045e9df69322ded56623a09506d79b8f.zip
(WAIT_ANY): define it if it isn't already define.
-rw-r--r--ChangeLog4
-rw-r--r--src/main.c6
2 files changed, 10 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index d96b14e..40d8a6c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2003-04-08 Shawn Betts <sabetts@sfu.ca>
+
+ * src/main.c (WAIT_ANY): define it if it isn't already define.
+
2003-04-07 Shawn Betts <sabetts@sfu.ca>
* src/input.c (read_key): remove the local variable, key_presses.
diff --git a/src/main.c b/src/main.c
index 2e65b46..3374ece 100644
--- a/src/main.c
+++ b/src/main.c
@@ -37,6 +37,12 @@
#include "ratpoison.h"
+/* Several systems seem not to have WAIT_ANY defined, so define it if
+ it isn't. */
+#ifndef WAIT_ANY
+# define WAIT_ANY -1
+#endif
+
static void init_screen (screen_info *s, int screen_num);
int alarm_signalled = 0;