1238106Sdes/* Just a replacement, if the original malloc is not 2238106Sdes GNU-compliant. See autoconf documentation. */ 3238106Sdes 4238106Sdes#include "config.h" 5238106Sdes#undef malloc 6238106Sdes#include <sys/types.h> 7238106Sdes 8356345Scy#ifndef USE_WINSOCK 9238106Sdesvoid *malloc (); 10356345Scy#else 11356345Scy/* provide a prototype */ 12356345Scyvoid *malloc (size_t n); 13356345Scy#endif 14238106Sdes 15238106Sdes/* Allocate an N-byte block of memory from the heap. 16238106Sdes If N is zero, allocate a 1-byte block. */ 17238106Sdes 18238106Sdesvoid * 19238106Sdesrpl_malloc_unbound (size_t n) 20238106Sdes{ 21238106Sdes if (n == 0) 22238106Sdes n = 1; 23238106Sdes return malloc (n); 24238106Sdes} 25