@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.libx11,v 1.8 2011/02/23 07:53:29 mrg Exp $
+# $NetBSD: Makefile.libx11,v 1.8.10.1 2013/06/12 04:05:36 msaitoh Exp $
LIB= X11
.PATH: ${X11SRCDIR.${LIB}}/src
@@ -461,5 +461,9 @@
COPTS.Font.c+= -Wno-error # XXX xf86bigfstr.h
COPTS.OpenDis.c+= -Wno-error # XXX xf86bigfstr.h
COPTS.XlibInt.c+= -Wno-error # XXX xcmiscstr.h
+.if ${HAVE_GCC} < 45
+COPTS.LiHosts.c+= -Wno-error # XXX: old gcc figures out that const
+ # cond because nHosts < max_hosts
+.endif
.include "${NETBSDSRCDIR}/external/mit/xorg/tools/makekeys/Makefile.makekeys"