summaryrefslogtreecommitdiff
path: root/shim.h
diff options
context:
space:
mode:
Diffstat (limited to 'shim.h')
-rw-r--r--shim.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/shim.h b/shim.h
index 0ea182eb..44dddc7a 100644
--- a/shim.h
+++ b/shim.h
@@ -3,6 +3,10 @@
#ifndef SHIM_H_
#define SHIM_H_
+#ifdef SHIM_UNIT_TEST
+#define _GNU_SOURCE
+#endif
+
#if defined __GNUC__ && defined __GNUC_MINOR__
# define GNUC_PREREQ(maj, min) \
((__GNUC__ << 16) + __GNUC_MINOR__ >= ((maj) << 16) + (min))