OpenBSD needs _BSD_SOURCE, not _GNU_SOURCE, for vasprintf
This commit is contained in:
parent
7ee0e78525
commit
9cac052b45
1 changed files with 4 additions and 0 deletions
|
|
@ -1,4 +1,8 @@
|
|||
#ifdef __OpenBSD__
|
||||
#define _BSD_SOURCE // to obtain asprintf/vasprintf
|
||||
#else
|
||||
#define _GNU_SOURCE // to obtain asprintf/vasprintf
|
||||
#endif
|
||||
#include "platform.h"
|
||||
|
||||
#include <stdio.h>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue