commit | e9dede06e5bc582a4aeb5b1cd5a7a640d7de3609 | [log] [tgz] |
---|---|---|
author | Darren Tucker <dtucker@dtucker.net> | Sun Feb 25 10:20:31 2018 +1100 |
committer | Darren Tucker <dtucker@dtucker.net> | Mon Feb 26 00:09:04 2018 +1100 |
tree | f149ff2fb7ff3d427cfd1e7fcee416e7922ada84 | |
parent | 2eb4041493fd2635ffdc64a852d02b38c4955e0b [diff] |
Handle calloc(0,x) where different from malloc. Configure assumes that if malloc(0) returns null then calloc(0,n) also does. On some old platforms (SunOS4) malloc behaves as expected (as determined by AC_FUNC_MALLOC) but calloc doesn't. Test for this at configure time and activate the replacement function if found, plus handle this case in rpl_calloc.