From 1b288897d93bf6d029f44541945c09b62e796a9c Mon Sep 17 00:00:00 2001 From: Markus Brueffer Date: Wed, 13 Dec 2006 23:43:55 +0000 Subject: [PATCH] Add patch in order to fix the build with gcc 4.1 and set WRKSRC accordingly Reported by: kris --- sysutils/pdixtract/Makefile | 1 + sysutils/pdixtract/files/patch-pdixtract.c | 28 ++++++++++++++++++++++ 2 files changed, 29 insertions(+) create mode 100644 sysutils/pdixtract/files/patch-pdixtract.c diff --git a/sysutils/pdixtract/Makefile b/sysutils/pdixtract/Makefile index f3df3ba8262c..3e3850ac5521 100644 --- a/sysutils/pdixtract/Makefile +++ b/sysutils/pdixtract/Makefile @@ -14,6 +14,7 @@ DISTNAME= PDITOOL MAINTAINER= markus@FreeBSD.org COMMENT= Extracts or converts .pdi file sets to .iso +WRKSRC= ${WRKDIR} USE_ZIP= yes PLIST_FILES= bin/pdixtract diff --git a/sysutils/pdixtract/files/patch-pdixtract.c b/sysutils/pdixtract/files/patch-pdixtract.c new file mode 100644 index 000000000000..8a2540fee7f4 --- /dev/null +++ b/sysutils/pdixtract/files/patch-pdixtract.c @@ -0,0 +1,28 @@ +--- pdixtract.c.orig Thu Dec 14 00:18:17 2006 ++++ pdixtract.c Thu Dec 14 00:25:55 2006 +@@ -79,6 +79,12 @@ + char name [1]; + }; + ++struct filedesc { ++ char *name; ++ size_t size; /* size in extents */ ++ size_t extent; ++ int hits; /* flag for individual file selection */ ++}; + + char buffer[BUFFSIZE]; + struct filedesc files[MAX_FILES]; +@@ -106,12 +112,6 @@ + exit(1); + } + +-struct filedesc { +- char *name; +- size_t size; /* size in extents */ +- size_t extent; +- int hits; /* flag for individual file selection */ +-}; + + + /* helper for qsort, compares extents of 2 filedescs */