Module Name: src
Committed By: pooka
Date: Mon Nov 10 22:43:46 UTC 2014
Modified Files:
src/lib/librumpuser: rumpuser_port.h
Log Message:
work around c11 visibility problems on some version(s) of FreeBSD
To generate a diff of this commit:
cvs rdiff -u -r1.41 -r1.42 src/lib/librumpuser/rumpuser_port.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/lib/librumpuser/rumpuser_port.h
diff -u src/lib/librumpuser/rumpuser_port.h:1.41 src/lib/librumpuser/rumpuser_port.h:1.42
--- src/lib/librumpuser/rumpuser_port.h:1.41 Mon Nov 10 22:29:06 2014
+++ src/lib/librumpuser/rumpuser_port.h Mon Nov 10 22:43:46 2014
@@ -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