summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorjoerg <joerg>2013-06-16 20:42:46 +0000
committerjoerg <joerg>2013-06-16 20:42:46 +0000
commit3081b639e51d8f9e0b0c3a83c9e56ab1f4aa0945 (patch)
tree189423319328bebf98f106d7c2ac6413fc5a6b1a /net
parent84afbeaef2968f7150465a6fb54cb0640cfc836c (diff)
downloadpkgsrc-3081b639e51d8f9e0b0c3a83c9e56ab1f4aa0945.tar.gz
No point in cleaning up this ancient cruft, so just make return type
mismatches non-fatal for clang.
Diffstat (limited to 'net')
-rw-r--r--net/socks4/Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/net/socks4/Makefile b/net/socks4/Makefile
index aa7a46500fa..abffd8ed4e4 100644
--- a/net/socks4/Makefile
+++ b/net/socks4/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.28 2012/10/23 17:19:09 asau Exp $
+# $NetBSD: Makefile,v 1.29 2013/06/16 20:42:46 joerg Exp $
#
DISTNAME= export.socks.cstc.4.2.2
@@ -32,4 +32,10 @@ post-patch:
${MV} include/socks.h.new include/socks.h
@${ECHO} "sockd 0.0.0.0 0.0.0.0" >> ${WRKSRC}/socks.conf
+.include "../../mk/compiler.mk"
+
+.if !empty(PKGSRC_COMPILER:Mclang)
+CFLAGS+= -Wno-error=return-type
+.endif
+
.include "../../mk/bsd.pkg.mk"