components/webalizer/Makefile
changeset 1352 1358a1e1ff4c
parent 1130 a4adf8cbfa5d
child 1496 f774cfa29f53
--- a/components/webalizer/Makefile	Tue Jun 18 13:15:45 2013 -0700
+++ b/components/webalizer/Makefile	Tue Jun 18 15:52:28 2013 -0700
@@ -55,6 +55,14 @@
 CONFIGURE_OPTIONS +=	CFLAGS="$(CFLAGS)"
 CONFIGURE_OPTIONS +=	LDFLAGS="$(LDFLAGS)"
 
+# webalizer is defining u_int64_t but also uses db.h
+# which typedefs it, and parfait isn't happy.
+# gcc4 may not be as well.
+ifeq   ($(strip $(PARFAIT_BUILD)),yes)
+CC += -Du_int64_t=uint64_t
+CONFIGURE_OPTIONS +=	c_cv_type_u_int64_t=yes
+endif
+
 # Needed to correctly build that 64-bit library.
 LDFLAGS += $(CC_BITS)