summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;