You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@stdcxx.apache.org by se...@apache.org on 2006/10/10 01:48:27 UTC
svn commit: r454555 - /incubator/stdcxx/trunk/tests/src/alloc.cpp
Author: sebor
Date: Mon Oct 9 16:48:26 2006
New Revision: 454555
URL: http://svn.apache.org/viewvc?view=rev&rev=454555
Log:
2006-10-09 Martin Sebor <se...@roguewave.com>
* alloc.cpp (MAP_PRIVATE, MAP_ANONYMOUS): #defined to 0 when not
#defined in system headers.
Modified:
incubator/stdcxx/trunk/tests/src/alloc.cpp
Modified: incubator/stdcxx/trunk/tests/src/alloc.cpp
URL: http://svn.apache.org/viewvc/incubator/stdcxx/trunk/tests/src/alloc.cpp?view=diff&rev=454555&r1=454554&r2=454555
==============================================================================
--- incubator/stdcxx/trunk/tests/src/alloc.cpp (original)
+++ incubator/stdcxx/trunk/tests/src/alloc.cpp Mon Oct 9 16:48:26 2006
@@ -162,6 +162,15 @@
#endif // _WIN{32,64}
+#ifndef MAP_PRIVATE
+# define MAP_PRIVATE 0
+#endif // MAP_PRIVATE
+
+#ifndef MAP_ANONYMOUS
+ // no MAP_ANONYMOUS on IRIX64
+# define MAP_ANONYMOUS 0
+#endif // MAP_ANONYMOUS
+
/************************************************************************/
struct BlockInfo