aboutsummaryrefslogtreecommitdiff
path: root/src/common/OpenBSD_malloc_Linux.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2008-03-13 15:06:49 +0000
committerNick Mathewson <nickm@torproject.org>2008-03-13 15:06:49 +0000
commitcad3d651d07fcf12a69188a934fa408956052b32 (patch)
tree13c7b5696f6fe095b53c25f54c46964258faa6f7 /src/common/OpenBSD_malloc_Linux.c
parentac6cc430473f6a43c2b26cf88131a0339c67b66a (diff)
downloadtor-cad3d651d07fcf12a69188a934fa408956052b32.tar
tor-cad3d651d07fcf12a69188a934fa408956052b32.tar.gz
r18783@catbus: nickm | 2008-03-13 11:06:45 -0400
Oops, do a better fix for that. svn:r14001
Diffstat (limited to 'src/common/OpenBSD_malloc_Linux.c')
-rw-r--r--src/common/OpenBSD_malloc_Linux.c15
1 files changed, 7 insertions, 8 deletions
diff --git a/src/common/OpenBSD_malloc_Linux.c b/src/common/OpenBSD_malloc_Linux.c
index a0817a7a0..59c2c7def 100644
--- a/src/common/OpenBSD_malloc_Linux.c
+++ b/src/common/OpenBSD_malloc_Linux.c
@@ -1928,14 +1928,13 @@ realloc(void *ptr, size_t size)
return (r);
}
-#if 0
-#if defined(__i386__)||defined(__arm__)||defined(__powerpc__)
-#define SIZE_MAX 0xffffffff
-#endif
-#if defined(__x86_64__)
-#define SIZE_MAX 0xffffffffffffffff
-#endif
-#else
+#ifndef SIZE_MAX
+//#if defined(__i386__)||defined(__arm__)||defined(__powerpc__)
+//#define SIZE_MAX 0xffffffff
+//#endif
+//#if defined(__x86_64__)
+//#define SIZE_MAX 0xffffffffffffffff
+//#endif
#define SIZE_MAX SIZE_T_MAX
#endif