pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

corert-git: Fix build on NetBSD - stop redefining SIZE_T_MAX



Module Name:	pkgsrc-wip
Committed By:	Kamil Rytarowski <n54%gmx.com@localhost>
Pushed By:	kamil
Date:		Sat May 7 14:34:42 2016 +0200
Changeset:	b1f74a06b7f01e536e0e6be3e7fce9ada0236a95

Modified Files:
	corert-git/distinfo
Added Files:
	corert-git/patches/patch-src_Native_gc_env_gcenv.base.h

Log Message:
corert-git: Fix build on NetBSD - stop redefining SIZE_T_MAX

/tmp/pkgsrc-tmp/wip/corert-git/work/corert/src/Native/Bootstrap/../gc/env/gcenv.base.h:27:9:
error: 'SIZE_T_MAX' macro redefined [-Werror,-Wmacro-redefined]
        ^
/usr/include/machine/limits.h:72:9: note: previous definition is here
        ^
1 error generated.

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=b1f74a06b7f01e536e0e6be3e7fce9ada0236a95

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 corert-git/distinfo                                     |  1 +
 corert-git/patches/patch-src_Native_gc_env_gcenv.base.h | 17 +++++++++++++++++
 2 files changed, 18 insertions(+)

diffs:
diff --git a/corert-git/distinfo b/corert-git/distinfo
index afc7651..1783b43 100644
--- a/corert-git/distinfo
+++ b/corert-git/distinfo
@@ -1,2 +1,3 @@
 $NetBSD$
 
+SHA1 (patch-src_Native_gc_env_gcenv.base.h) = 31837b9c8723c54ca65001a5c7c2168392d263a0
diff --git a/corert-git/patches/patch-src_Native_gc_env_gcenv.base.h b/corert-git/patches/patch-src_Native_gc_env_gcenv.base.h
new file mode 100644
index 0000000..dcd9a61
--- /dev/null
+++ b/corert-git/patches/patch-src_Native_gc_env_gcenv.base.h
@@ -0,0 +1,17 @@
+$NetBSD$
+
+--- src/Native/gc/env/gcenv.base.h.orig	2016-05-07 12:28:59.774660421 +0000
++++ src/Native/gc/env/gcenv.base.h
+@@ -24,8 +24,12 @@
+ #endif // __clang__
+ #endif // !_MSC_VER
+ 
++#ifndef SIZE_T_MAX
+ #define SIZE_T_MAX ((size_t)-1)
++#endif
++#ifndef SSIZE_T_MAX
+ #define SSIZE_T_MAX ((ptrdiff_t)(SIZE_T_MAX / 2))
++#endif
+ 
+ #ifndef _INC_WINDOWS
+ // -----------------------------------------------------------------------------------------------------------


Home | Main Index | Thread Index | Old Index