aboutsummaryrefslogtreecommitdiffstats
path: root/benchmarks
diff options
context:
space:
mode:
authoredwin <edwin@FreeBSD.org>2007-04-16 19:48:02 +0800
committeredwin <edwin@FreeBSD.org>2007-04-16 19:48:02 +0800
commit764357efaa89ef8478cff699bb7c00b7196660f9 (patch)
tree38e6db88cc421348eb1116b42eef946526dadffb /benchmarks
parent1de9b2f9d9ff14a1c58ecd573b8e1c2103c13400 (diff)
downloadfreebsd-ports-gnome-764357efaa89ef8478cff699bb7c00b7196660f9.tar.gz
freebsd-ports-gnome-764357efaa89ef8478cff699bb7c00b7196660f9.tar.zst
freebsd-ports-gnome-764357efaa89ef8478cff699bb7c00b7196660f9.zip
Remove unreachable code due to OSVERSION checks
Diffstat (limited to 'benchmarks')
-rw-r--r--benchmarks/libmicro/Makefile8
-rw-r--r--benchmarks/libmicro/files/extra-patch-ucontext38
2 files changed, 1 insertions, 45 deletions
diff --git a/benchmarks/libmicro/Makefile b/benchmarks/libmicro/Makefile
index ed7bf0503ea6..ef8186054469 100644
--- a/benchmarks/libmicro/Makefile
+++ b/benchmarks/libmicro/Makefile
@@ -22,12 +22,6 @@ PLIST_SUB= ARCH=${ARCH}
# Do not strip binaries
STRIP=
-.include <bsd.port.pre.mk>
-
-.if ${OSVERSION} <= 500036
-EXTRA_PATCHES= ${FILESDIR}/extra-patch-ucontext
-.endif
-
do-install:
${MKDIR} ${DATADIR}
${MKDIR} ${DATADIR}/bin
@@ -43,4 +37,4 @@ do-install:
${INSTALL_SCRIPT} ${WRKDIR}/libmicro-bench ${PREFIX}/bin/libmicro-bench
${INSTALL_SCRIPT} ${WRKSRC}/multiview ${PREFIX}/bin/multiview
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
diff --git a/benchmarks/libmicro/files/extra-patch-ucontext b/benchmarks/libmicro/files/extra-patch-ucontext
deleted file mode 100644
index 2b2f934f9cde..000000000000
--- a/benchmarks/libmicro/files/extra-patch-ucontext
+++ /dev/null
@@ -1,38 +0,0 @@
---- setcontext.c.orig Sat Aug 6 16:18:46 2005
-+++ setcontext.c Sat Aug 6 16:19:29 2005
-@@ -57,7 +57,7 @@
- benchmark(void *tsd, result_t *res)
- {
- volatile int i;
--
-+#if 0
- ucontext_t uc;
-
- i = 0;
-@@ -68,6 +68,7 @@
- (void) setcontext(&uc);
-
- res->re_count += lm_optB;
-+#endif
-
- return (0);
- }
---- getcontext.c.orig Sat Aug 6 16:18:39 2005
-+++ getcontext.c Sat Aug 6 16:19:06 2005
-@@ -59,7 +59,7 @@
- benchmark(void *tsd, result_t *res)
- {
- int i;
--
-+#if 0
- for (i = 0; i < lm_optB; i += 10) {
- ucontext_t uc;
- (void) getcontext(&uc);
-@@ -74,6 +74,6 @@
- (void) getcontext(&uc);
- }
- res->re_count = i;
--
-+#endif
- return (0);
- }