aboutsummaryrefslogtreecommitdiffstats
path: root/icetime
diff options
context:
space:
mode:
Diffstat (limited to 'icetime')
-rw-r--r--icetime/icetime.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/icetime/icetime.cc b/icetime/icetime.cc
index 1d0549c..affc56d 100644
--- a/icetime/icetime.cc
+++ b/icetime/icetime.cc
@@ -14,7 +14,10 @@
// OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
//
+#if !defined(_WIN32) && !defined(_GNU_SOURCE)
+// for vasprintf()
#define _GNU_SOURCE
+#endif
#include <stdio.h>
#include <stdlib.h>