$OpenBSD: patch-w_keyboard_c,v 1.1 2008/08/26 14:32:20 sthen Exp $
--- w_keyboard.c.pat.orig	Tue Nov  9 21:10:22 2004
+++ w_keyboard.c	Wed Aug 20 11:49:09 2008
@@ -17,8 +17,8 @@
  */
 
 #include <sys/types.h>
+#include <stdlib.h>
 #include <regex.h>
-#include <alloca.h>
 #include <string.h>
 #include <math.h>
 
@@ -33,8 +33,8 @@
 #include "w_util.h"
 #include "w_keyboard.h"
 
-#if defined(__CYGWIN__)
-#define REG_NOERROR REG_OKAY
+#ifndef REG_NOERROR
+#define REG_NOERROR 0
 #endif
 
 Boolean keyboard_input_available = False;
