$OpenBSD: patch-fptools_libraries_HGL_configure,v 1.1 2005/05/08 08:45:09 dons Exp $
--- fptools/libraries/HGL/configure.orig	Sat May  7 22:07:15 2005
+++ fptools/libraries/HGL/configure	Sat May  7 22:07:20 2005
@@ -3589,6 +3589,7 @@ fi
 # this will catch the case of using a mingw32 gcc on a Cygwin system:
 # Cygwin has the X headers & libs installed, but the mingw32 gcc can't
 # use them, and we want to disable the package in this case.
+CPPFLAGS="$CPPFLAGS $X_CFLAGS"
 cat >conftest.$ac_ext <<_ACEOF
 #line $LINENO "configure"
 /* confdefs.h.  */
