aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/sigs.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/sigs.c b/src/sigs.c
index c9fde84..6a006c3 100644
--- a/src/sigs.c
+++ b/src/sigs.c
@@ -37,6 +37,10 @@
#ifndef _BSD_SOURCE
/* Needed for SIGWINCH on OpenBSD. */
#define _BSD_SOURCE
+/* Silence compiler warning about _BSD_SOURCE being deprecated. */
+#ifndef _DEFAULT_SOURCE
+#define _DEFAULT_SOURCE
+#endif
#endif
#ifndef __BSD_VISIBLE