Commit 2c2612e5 authored by Rusty Russell's avatar Rusty Russell

Handle where _GNU_SOURCE already defined.

Reported by Tim Post.
parent 9fc013b2
...@@ -23,7 +23,10 @@ ...@@ -23,7 +23,10 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE. * SUCH DAMAGE.
*/ */
#define _GNU_SOURCE /* FIXME: The real fix is an asprintf module. */
#ifndef _GNU_SOURCE
#define _GNU_SOURCE 1
#endif
#include <ctype.h> #include <ctype.h>
#include <stdarg.h> #include <stdarg.h>
#include <stdio.h> #include <stdio.h>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment