From 2f01f856983270c3bc4e56a33ed3b5c66723fe64 Mon Sep 17 00:00:00 2001 From: miwi Date: Thu, 7 Feb 2013 14:32:00 +0000 Subject: - Fix build with clang PR: 175044 Submitted by: ports fury --- misc/xd/Makefile | 8 +++----- misc/xd/files/patch-xd.c | 11 +++++++++++ 2 files changed, 14 insertions(+), 5 deletions(-) create mode 100644 misc/xd/files/patch-xd.c (limited to 'misc/xd') diff --git a/misc/xd/Makefile b/misc/xd/Makefile index 24e429334bf6..5b10899501aa 100644 --- a/misc/xd/Makefile +++ b/misc/xd/Makefile @@ -1,9 +1,5 @@ -# New ports collection makefile for: xd -# Date created: 17 October 1997 -# Whom: KIRIYAMA Kazuhiko -# +# Created by: KIRIYAMA Kazuhiko # $FreeBSD$ -# PORTNAME= xd PORTVERSION= 2.3 @@ -14,6 +10,8 @@ DISTNAME= xd-8087 MAINTAINER= ports@FreeBSD.org COMMENT= Yet another dump utility +LICENSE= BSD + MAKE_ARGS= CC="${CC}" BINDIR="${PREFIX}/bin" \ MANDIR="${MAN1PREFIX}/man/man" diff --git a/misc/xd/files/patch-xd.c b/misc/xd/files/patch-xd.c new file mode 100644 index 000000000000..05ae8b558fac --- /dev/null +++ b/misc/xd/files/patch-xd.c @@ -0,0 +1,11 @@ +--- xd.c.orig 1996-08-27 02:23:22.000000000 +0900 ++++ xd.c 2012-10-24 05:56:31.000000000 +0900 +@@ -392,7 +392,7 @@ + * + */ + #define ISFILE(str) (*(str) != '-' || *((str) + 1) == '\0') +-void ++int + main(int argc, char *argv[]) + { + int i, nf = 0, show_usage = FALSE, result; -- cgit