$OpenBSD: patch-lib-src_libnyquist_nyquist_xlisp_xlisp_h,v 1.1 2009/10/28 18:40:13 jakemsr Exp $
--- lib-src/libnyquist/nyquist/xlisp/xlisp.h.orig	Sat Oct 17 15:12:12 2009
+++ lib-src/libnyquist/nyquist/xlisp/xlisp.h	Sat Oct 17 15:18:45 2009
@@ -152,6 +152,16 @@ extern long ptrtoabs();
 #endif
 #endif
 
+/* OpenBSD gcc */
+#if defined(__OpenBSD__)
+#include <sys/types.h>
+#if _BYTE_ORDER == _LITTLE_ENDIAN
+#define XL_LITTLE_ENDIAN
+#else
+#define XL_BIG_ENDIAN
+#endif
+#endif
+
 /* Apple CC */
 #ifdef __APPLE__
 #define NNODES 2000
@@ -190,7 +200,7 @@ extern long ptrtoabs();
 #define LOCAL		static
 #endif
 #ifndef AFMT
-#define AFMT		"%x"
+#define AFMT		"%lux"
 #endif
 #ifndef FIXTYPE
 #define FIXTYPE		long
