1     #include <config.h>
2     #undef malloc
3
4     #include <sys/types.h>
5
6     void *malloc ();
7
8     /* Allocate an N-byte block of memory from the heap.
9        If N is zero, allocate a 1-byte block.  */
10
11     void *
12     rpl_malloc (size_t n)
13     {
14       if (n == 0)
15         n = 1;
16       return malloc (n);
17     }
18