ports/devel/valgrind/files/patch-include_vg_kerneliface.h
Simon Barner ff2d82068c - Fix build on 7-current by avoiding conflict in si_band macro, that
is already defined in the sys/signal.h header

Submitted by:	Niklas Sorensson <nik@cs.chalmers.se>
Prodded by:	kris via pointyhat
2006-02-15 17:42:26 +00:00

22 lines
408 B
C

--- include/vg_kerneliface.h.orig Fri Jul 16 19:35:22 2004
+++ include/vg_kerneliface.h Wed Feb 15 18:24:26 2006
@@ -177,6 +177,10 @@
#ifdef __FreeBSD__
+#ifdef si_band
+#undef si_band
+#endif
+
typedef
struct {
Int si_signo;
@@ -975,6 +979,8 @@
unsigned long long rlim_max;
} vki_rlimit;
+#define VKI_RLIMIT_DATA 2
+#define VKI_RLIMIT_CORE 4
#define VKI_RLIMIT_NOFILE 8
#endif