freebsd-ports/devel/ice/files/patch-cpp-include-IceUtil-Config.h
Michael Gmelin 4aff7c172a Update devel/ice, devel/py-ice and devel/php5-ice to 3.6.0
PR:		201143
Differential Revision:	https://reviews.freebsd.org/D2930
Reviewed by:	bapt
Approved by:	bapt
Tested by:	Roger Leigh <rleigh@codelibre.net>
2015-07-13 19:48:31 +00:00

19 lines
529 B
C

--- cpp/include/IceUtil/Config.h.orig 2015-06-27 15:37:32.688102665 +0000
+++ cpp/include/IceUtil/Config.h 2015-06-27 15:37:34.926179135 +0000
@@ -49,6 +49,16 @@
#endif
//
+// FreeBSD 10.0-RELEASE had a broken atexit handler
+// (affects the order of static destruction)
+#if defined(__FreeBSD__)
+#include <sys/param.h>
+# if __FreeBSD_version < 1000700
+# define ICE_BROKEN_ATEXIT = 1
+# endif
+#endif
+
+//
// Check for C++ 11 support
//
// For GCC, we recognize --std=c++0x only for GCC version 4.5 and greater,