From db268f50e53ff8f1f3b316668385c5c54d8b22ef Mon Sep 17 00:00:00 2001 From: Juergen Lock Date: Wed, 22 Jun 2011 23:20:04 +0000 Subject: [PATCH] Fix build with clang. PR: ports/158177 (after fixing a typo :) Submitted by: Niclas Zeising --- www/squirm/Makefile | 2 ++ www/squirm/files/patch-squirm.c | 11 +++++++++++ 2 files changed, 13 insertions(+) create mode 100644 www/squirm/files/patch-squirm.c diff --git a/www/squirm/Makefile b/www/squirm/Makefile index badaf849cdc4..b9c889fdc5c0 100644 --- a/www/squirm/Makefile +++ b/www/squirm/Makefile @@ -16,6 +16,8 @@ COMMENT= A fast & configurable redirector for the Squid RUN_DEPENDS= ${LOCALBASE}/sbin/squid:${PORTSDIR}/www/squid +USE_CSTD= gnu89 + SQUID_UID?= squid SQUID_GID?= squid diff --git a/www/squirm/files/patch-squirm.c b/www/squirm/files/patch-squirm.c new file mode 100644 index 000000000000..c3cd74e775a8 --- /dev/null +++ b/www/squirm/files/patch-squirm.c @@ -0,0 +1,11 @@ +--- squirm.c.orig 2011-06-23 00:02:30.000000000 +0200 ++++ squirm.c 2011-06-23 00:02:46.000000000 +0200 +@@ -88,7 +88,7 @@ + print buff to stdout + */ + if(strlen(in_buff->url) <= 4) { +- logprint(LOG_FAIL, "strlen in_buff->url = [%d] in main()\n", ++ logprint(LOG_FAIL, "strlen in_buff->url = [%zu] in main()\n", + strlen(in_buff->url)); + return 1; + }