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 <[EMAIL PROTECTED]>
* 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