malloc.c revision 238104
1238104Sdes/* Just a replacement, if the original malloc is not 2238104Sdes GNU-compliant. See autoconf documentation. */ 3238104Sdes 4238104Sdes#if HAVE_CONFIG_H 5238104Sdes#include <ldns/config.h> 6238104Sdes#endif 7238104Sdes#undef malloc 8238104Sdes 9238104Sdes#include <sys/types.h> 10238104Sdes 11238104Sdesvoid *malloc (); 12238104Sdes 13238104Sdes/* Allocate an N-byte block of memory from the heap. 14238104Sdes If N is zero, allocate a 1-byte block. */ 15238104Sdes 16238104Sdesvoid * 17238104Sdesrpl_malloc (size_t n) 18238104Sdes{ 19238104Sdes if (n == 0) 20238104Sdes n = 1; 21238104Sdes return malloc (n); 22238104Sdes} 23