From 8baefbe5c8593c9f59bb013460abf1792f5630cc Mon Sep 17 00:00:00 2001 From: theraven Date: Tue, 28 May 2013 09:57:00 +0000 Subject: [PATCH] Expose asprintf() with glibc. --- block_to_imp.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/block_to_imp.c b/block_to_imp.c index 5b0262c..87eebca 100644 --- a/block_to_imp.c +++ b/block_to_imp.c @@ -1,3 +1,7 @@ +// On some platforms, we need _GNU_SOURCE to expose asprintf() +#ifndef _GNU_SOURCE +#define _GNU_SOURCE 1 +#endif #include #include #include