--- error.c.orig	Thu Jan 13 16:36:04 1994
+++ error.c	Tue Sep 29 22:08:27 1998
@@ -13,7 +13,11 @@
 
 #include <stdio.h>
 #include <stdlib.h>
+#ifdef __FreeBSD__
+#include <X11/Xlibint.h>
+#else
 #include <X11/Xlib.h>
+#endif
 #include <X11/Xproto.h>
 
 #include "i18n.h"
@@ -232,8 +236,10 @@
 	err->resourceid);
     FPRINTF(stderr, GetString("  serial number of failed request:  %d\n"),
 	err->serial);
+#ifndef	__OpenBSD__
     FPRINTF(stderr, GetString("  current request serial number:  %d\n"),
 	dpy->request);
+#endif
 }
 
 
