Skip to content
Snippets Groups Projects
Commit 9cac052b authored by Sven M. Hallberg's avatar Sven M. Hallberg
Browse files

OpenBSD needs _BSD_SOURCE, not _GNU_SOURCE, for vasprintf

parent 7ee0e785
No related merge requests found
#ifdef __OpenBSD__
#define _BSD_SOURCE // to obtain asprintf/vasprintf
#else
#define _GNU_SOURCE // to obtain asprintf/vasprintf
#endif
#include "platform.h"
#include <stdio.h>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment