aboutsummaryrefslogtreecommitdiff
path: root/devel/stlink
diff options
context:
space:
mode:
authorLev A. Serebryakov <lev@FreeBSD.org>2020-06-06 21:22:32 +0000
committerLev A. Serebryakov <lev@FreeBSD.org>2020-06-06 21:22:32 +0000
commitfa323644a47f359c2bf843fd98aaa956e14ba845 (patch)
treebbd144f5da05dc16ca2559d65e97e7d9c1cafd3d /devel/stlink
parentfe8e5d6f84f9d8eb511627f8f34c9db89d000f31 (diff)
downloadports-fa323644a47f359c2bf843fd98aaa956e14ba845.tar.gz
ports-fa323644a47f359c2bf843fd98aaa956e14ba845.zip
Remove unneeded 32bit patch.
Notes
Notes: svn path=/head/; revision=538133
Diffstat (limited to 'devel/stlink')
-rw-r--r--devel/stlink/Makefile4
-rw-r--r--devel/stlink/files/extra-pacth-32bit18
2 files changed, 0 insertions, 22 deletions
diff --git a/devel/stlink/Makefile b/devel/stlink/Makefile
index e6714fbc330c..ee48bb8decdc 100644
--- a/devel/stlink/Makefile
+++ b/devel/stlink/Makefile
@@ -31,10 +31,6 @@ ALLDOCS= compiling.md developer.txt devices_boards.md \
.include <bsd.port.pre.mk>
-.if ! ${ARCH:M*64*}
-EXTRA_PATCHES+= ${FILESDIR}/extra-pacth-32bit
-.endif
-
post-install:
${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README.md ${STAGEDIR}${DOCSDIR}/README.md
diff --git a/devel/stlink/files/extra-pacth-32bit b/devel/stlink/files/extra-pacth-32bit
deleted file mode 100644
index 321fbb9df950..000000000000
--- a/devel/stlink/files/extra-pacth-32bit
+++ /dev/null
@@ -1,18 +0,0 @@
---- src/common.c.orig 2018-02-19 15:59:51.068865000 +0300
-+++ src/common.c 2018-02-19 16:00:23.483652000 +0300
-@@ -1032,13 +1032,13 @@
- goto on_error;
- }
-
-- mf->base = (uint8_t*) mmap(NULL, st.st_size, PROT_READ, MAP_SHARED, fd, 0);
-+ mf->base = (uint8_t*) mmap(NULL, (size_t)st.st_size, PROT_READ, MAP_SHARED, fd, 0);
- if (mf->base == MAP_FAILED) {
- fprintf(stderr, "mmap() == MAP_FAILED\n");
- goto on_error;
- }
-
-- mf->len = st.st_size;
-+ mf->len = (size_t)st.st_size;
-
- /* success */
- error = 0;