pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/multimedia/ming ming: INT_MAX and MAX() compat.
details: https://anonhg.NetBSD.org/pkgsrc/rev/61be9ad9ae34
branches: trunk
changeset: 315405:61be9ad9ae34
user: jperkin <jperkin%pkgsrc.org@localhost>
date: Fri Nov 23 12:13:19 2018 +0000
description:
ming: INT_MAX and MAX() compat.
diffstat:
multimedia/ming/distinfo | 3 ++-
multimedia/ming/patches/patch-util_parser.c | 25 +++++++++++++++++++++++++
2 files changed, 27 insertions(+), 1 deletions(-)
diffs (42 lines):
diff -r d60c8c72a856 -r 61be9ad9ae34 multimedia/ming/distinfo
--- a/multimedia/ming/distinfo Fri Nov 23 12:12:29 2018 +0000
+++ b/multimedia/ming/distinfo Fri Nov 23 12:13:19 2018 +0000
@@ -1,7 +1,8 @@
-$NetBSD: distinfo,v 1.18 2018/11/13 10:18:26 markd Exp $
+$NetBSD: distinfo,v 1.19 2018/11/23 12:13:19 jperkin Exp $
SHA1 (ming-0_4_8.tar.gz) = ef94923ea4f71fca0950c4a9ff1eb33e1712c17b
RMD160 (ming-0_4_8.tar.gz) = 4110608567c768bb67338c4bd3967322e63c32d4
SHA512 (ming-0_4_8.tar.gz) = e395acde9119ad32f4cedd500bcceee70bdd563222a41dda899cc318d5e34eb580abc38ac39c6dec7821913a0a70d2f953fc81f52255b623e34f7c3aaafbc9c0
Size (ming-0_4_8.tar.gz) = 14908459 bytes
SHA1 (patch-configure.in) = 9c231dc2e06d12e05b8e82d48f1df2aed33de697
+SHA1 (patch-util_parser.c) = f41454623af76bc893d3040513dcd900f5b76a32
diff -r d60c8c72a856 -r 61be9ad9ae34 multimedia/ming/patches/patch-util_parser.c
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/multimedia/ming/patches/patch-util_parser.c Fri Nov 23 12:13:19 2018 +0000
@@ -0,0 +1,25 @@
+$NetBSD: patch-util_parser.c,v 1.1 2018/11/23 12:13:19 jperkin Exp $
+
+Need limits.h for INT_MAX and provide MAX compat macro.
+
+--- util/parser.c.orig 2017-04-07 08:12:56.000000000 +0000
++++ util/parser.c
+@@ -18,6 +18,7 @@
+ *
+ ****************************************************************************/
+
++#include <limits.h>
+ #include <stdint.h>
+ #include <stdio.h>
+ #include <stdlib.h>
+@@ -51,6 +52,10 @@ void silentSkipBytes(FILE *f, int length
+ printf("skipping %i bytes\n", length); \
+ readBytes(f, length);
+
++#ifndef MAX
++#define MAX(a, b) ((a > b) ? a : b)
++#endif
++
+ /* Parse Basic Flash types */
+
+ void
Home |
Main Index |
Thread Index |
Old Index