diff options
Diffstat (limited to 'polyp/xmalloc.c')
-rw-r--r-- | polyp/xmalloc.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/polyp/xmalloc.c b/polyp/xmalloc.c index f2751e52..bf366347 100644 --- a/polyp/xmalloc.c +++ b/polyp/xmalloc.c @@ -30,6 +30,8 @@ #include "memory.h" #include "util.h" +#include "xmalloc.h" +#include "gccmacro.h" /* Make sure not to allocate more than this much memory. */ #define MAX_ALLOC_SIZE (1024*1024*20) /* 20MB */ @@ -40,6 +42,8 @@ /* #undef strndup */ /* #undef strdup */ +static void oom(void) PA_GCC_NORETURN; + /** called in case of an OOM situation. Prints an error message and * exits */ static void oom(void) { |