summaryrefslogtreecommitdiff
path: root/src/atomic_ops.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/atomic_ops.c')
-rw-r--r--src/atomic_ops.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/atomic_ops.c b/src/atomic_ops.c
index 0d9ca02..e1dfdb7 100644
--- a/src/atomic_ops.c
+++ b/src/atomic_ops.c
@@ -45,7 +45,8 @@
# define AO_USE_NO_SIGNALS
#endif
-#if (defined(__linux__) || defined(__GLIBC__) || defined(__GNU__)) \
+#if (defined(__CYGWIN__) || defined(__GLIBC__) || defined(__GNU__) \
+ || defined(__linux__)) \
&& !defined(AO_USE_NO_SIGNALS) && !defined(_GNU_SOURCE)
# define _GNU_SOURCE 1
#endif