Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 20 Sep 2020 11:54:13 +0000 (UTC)
From:      =?UTF-8?Q?Stefan_E=c3=9fer?= <se@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r549094 - in head/sysutils/memtester: . files
Message-ID:  <202009201154.08KBsDIF039663@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: se
Date: Sun Sep 20 11:54:13 2020
New Revision: 549094
URL: https://svnweb.freebsd.org/changeset/ports/549094

Log:
  Fix build with -fno-common

Added:
  head/sysutils/memtester/files/
  head/sysutils/memtester/files/patch-tests.c   (contents, props changed)
  head/sysutils/memtester/files/patch-types.h   (contents, props changed)
Modified:
  head/sysutils/memtester/Makefile

Modified: head/sysutils/memtester/Makefile
==============================================================================
--- head/sysutils/memtester/Makefile	Sun Sep 20 11:42:45 2020	(r549093)
+++ head/sysutils/memtester/Makefile	Sun Sep 20 11:54:13 2020	(r549094)
@@ -3,6 +3,7 @@
 
 PORTNAME=	memtester
 PORTVERSION=	4.3.0
+PORTREVISION=	1
 CATEGORIES=	sysutils
 MASTER_SITES=	http://pyropus.ca/software/${PORTNAME}/old-versions/
 

Added: head/sysutils/memtester/files/patch-tests.c
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/sysutils/memtester/files/patch-tests.c	Sun Sep 20 11:54:13 2020	(r549094)
@@ -0,0 +1,19 @@
+--- tests.c.orig	2012-06-09 21:45:22 UTC
++++ tests.c
+@@ -22,6 +22,16 @@
+ #include "sizes.h"
+ #include "memtester.h"
+ 
++union {
++    unsigned char bytes[UL_LEN/8];
++    ul val;
++} mword8;
++
++union {
++    unsigned short u16s[UL_LEN/16];
++    ul val;
++} mword16;
++
+ char progress[] = "-\\|/";
+ #define PROGRESSLEN 4
+ #define PROGRESSOFTEN 2500

Added: head/sysutils/memtester/files/patch-types.h
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/sysutils/memtester/files/patch-types.h	Sun Sep 20 11:54:13 2020	(r549094)
@@ -0,0 +1,16 @@
+--- types.h.orig	2012-06-09 21:45:22 UTC
++++ types.h
+@@ -24,13 +24,3 @@ struct test {
+     char *name;
+     int (*fp)();
+ };
+-
+-union {
+-    unsigned char bytes[UL_LEN/8];
+-    ul val;
+-} mword8;
+-
+-union {
+-    unsigned short u16s[UL_LEN/16];
+-    ul val;
+-} mword16;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202009201154.08KBsDIF039663>