[memcached] bradfitz, r369: gcc 2.95 doesn't have atoll apparently.
commits at code.sixapart.com
commits at code.sixapart.com
Tue Sep 5 05:50:58 UTC 2006
gcc 2.95 doesn't have atoll apparently.
but long's good enough for the platforms I care about (LP64). LLP64
(Microsoft) can, uh, fail. I doubt the test suite would work there
anyway, and this is all this is for.
this should fix FreeBSD 4 and other gcc 2.95 platforms.
U trunk/server/slabs.c
Modified: trunk/server/slabs.c
===================================================================
--- trunk/server/slabs.c 2006-09-05 05:20:20 UTC (rev 368)
+++ trunk/server/slabs.c 2006-09-05 05:50:57 UTC (rev 369)
@@ -110,7 +110,7 @@
{
char *t_initial_malloc = getenv("T_MEMD_INITIAL_MALLOC");
if (t_initial_malloc) {
- mem_malloced = atoll(getenv("T_MEMD_INITIAL_MALLOC"));
+ mem_malloced = atol(getenv("T_MEMD_INITIAL_MALLOC"));
}
}
More information about the memcached-commits
mailing list