$OpenBSD: patch-glib_gmacros_h,v 1.1 2002/08/07 13:11:53 nino Exp $
--- glib/gmacros.h.orig	Wed Aug  7 10:57:41 2002
+++ glib/gmacros.h	Wed Aug  7 10:58:56 2002
@@ -34,6 +34,7 @@
 /* We include stddef.h to get the system's definition of NULL
  */
 #include <stddef.h>
+#include <sys/param.h>
 
 /* Here we provide G_GNUC_EXTENSION as an alias for __extension__,
  * where this is valid. This allows for warningless compilation of
@@ -130,11 +131,13 @@
 #define	TRUE	(!FALSE)
 #endif
 
-#undef	MAX
+#ifndef MAX
 #define MAX(a, b)  (((a) > (b)) ? (a) : (b))
+#endif
 
-#undef	MIN
+#ifndef MIN
 #define MIN(a, b)  (((a) < (b)) ? (a) : (b))
+#endif
 
 #undef	ABS
 #define ABS(a)	   (((a) < 0) ? -(a) : (a))
