svn commit: r433134 - in head/emulators/mame: . files
Jan Beich
jbeich at FreeBSD.org
Thu Feb 2 09:39:26 UTC 2017
Author: jbeich
Date: Thu Feb 2 09:39:25 2017
New Revision: 433134
URL: https://svnweb.freebsd.org/changeset/ports/433134
Log:
emulators/mame: unbreak with clang 4.0
../../../../../src/emu/webengine.c:333:21: error: ordered comparison between pointer and zero
('int *' and 'int')
if ((&data_length > 0) && (sizeof(file_name) > 0))
~~~~~~~~~~~~ ^ ~
Reported by: antoine (via exp-run)
Added:
head/emulators/mame/files/patch-src_emu_webengine.c (contents, props changed)
Modified:
head/emulators/mame/Makefile (contents, props changed)
Modified: head/emulators/mame/Makefile
==============================================================================
--- head/emulators/mame/Makefile Thu Feb 2 09:25:46 2017 (r433133)
+++ head/emulators/mame/Makefile Thu Feb 2 09:39:25 2017 (r433134)
@@ -3,7 +3,7 @@
PORTNAME?= mame
PORTVERSION= 0.166
-PORTREVISION?= 1
+PORTREVISION?= 2
CATEGORIES= emulators
MAINTAINER= ports at FreeBSD.org
Added: head/emulators/mame/files/patch-src_emu_webengine.c
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/emulators/mame/files/patch-src_emu_webengine.c Thu Feb 2 09:39:25 2017 (r433134)
@@ -0,0 +1,11 @@
+--- src/emu/webengine.c.orig 2015-09-30 06:29:01 UTC
++++ src/emu/webengine.c
+@@ -330,7 +330,7 @@ int web_engine::begin_request_handler(st
+ // That upload_data contains more than we need. It also has the headers.
+ // We'll need to strip it down to just what we want.
+
+- if ((&data_length > 0) && (sizeof(file_name) > 0))
++ if ((data_length > 0) && (sizeof(file_name) > 0))
+ {
+ // MSVC doesn't yet support variable-length arrays, so chop the string the old-fashioned way
+ upload_data[data_length] = '\0';
More information about the svn-ports-head
mailing list