Source-Changes-HG archive

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

[src/trunk]: src/lib/librumpuser work around c11 visibility problems on some ...



details:   https://anonhg.NetBSD.org/src/rev/bdd8896a8d03
branches:  trunk
changeset: 333612:bdd8896a8d03
user:      pooka <pooka%NetBSD.org@localhost>
date:      Mon Nov 10 22:43:46 2014 +0000

description:
work around c11 visibility problems on some version(s) of FreeBSD

diffstat:

 lib/librumpuser/rumpuser_port.h |  14 +++++++++++++-
 1 files changed, 13 insertions(+), 1 deletions(-)

diffs (28 lines):

diff -r d149f7abc3ab -r bdd8896a8d03 lib/librumpuser/rumpuser_port.h
--- a/lib/librumpuser/rumpuser_port.h   Mon Nov 10 22:29:06 2014 +0000
+++ b/lib/librumpuser/rumpuser_port.h   Mon Nov 10 22:43:46 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: rumpuser_port.h,v 1.41 2014/11/10 22:29:06 pooka Exp $ */
+/*     $NetBSD: rumpuser_port.h,v 1.42 2014/11/10 22:43:46 pooka Exp $ */
 
 #ifndef _LIB_LIBRUMPUSER_RUMPUSER_PORT_H_
 #define _LIB_LIBRUMPUSER_RUMPUSER_PORT_H_
@@ -69,6 +69,18 @@
 #if defined(HAVE_SYS_CDEFS_H)
 #include <sys/cdefs.h>
 #endif
+
+/*
+ * Some versions of FreeBSD (e.g. 9.2) contain C11 stuff without
+ * any obvious way to expose the protos.  Kludge around it.
+ */
+#ifdef __FreeBSD__
+#if __ISO_C_VISIBLE < 2011
+#undef __ISO_C_VISIBLE
+#define __ISO_C_VISIBLE 2011
+#endif
+#endif
+
 #if defined(HAVE_SYS_PARAM_H)
 #include <sys/param.h>
 #endif



Home | Main Index | Thread Index | Old Index