summaryrefslogtreecommitdiff
path: root/imap
diff options
context:
space:
mode:
Diffstat (limited to 'imap')
-rw-r--r--imap/src/osdep/unix/os_lnx.h3
-rw-r--r--imap/src/osdep/unix/os_slx.h3
2 files changed, 6 insertions, 0 deletions
diff --git a/imap/src/osdep/unix/os_lnx.h b/imap/src/osdep/unix/os_lnx.h
index c24bbec7..ee2d76d1 100644
--- a/imap/src/osdep/unix/os_lnx.h
+++ b/imap/src/osdep/unix/os_lnx.h
@@ -34,6 +34,9 @@
#ifndef _DEFAULT_SOURCE
#define _DEFAULT_SOURCE 1
#endif /* _DEFAULT_SOURCE */
+#ifndef _BSD_SOURCE /* gcc 6 deprecates this, so will we */
+#define _BSD_SOURCE 1
+#endif /* _BSD_SOURCE */
/* end Debian Linux on Alpha strangeness */
diff --git a/imap/src/osdep/unix/os_slx.h b/imap/src/osdep/unix/os_slx.h
index c24bbec7..8aec345e 100644
--- a/imap/src/osdep/unix/os_slx.h
+++ b/imap/src/osdep/unix/os_slx.h
@@ -34,6 +34,9 @@
#ifndef _DEFAULT_SOURCE
#define _DEFAULT_SOURCE 1
#endif /* _DEFAULT_SOURCE */
+#ifndef _BSD_SOURCE /* gcc 6 deprecates this, so will we */
+#define _BSD_SOURCE 1
+#endif /* _BSD_SOURCE */
/* end Debian Linux on Alpha strangeness */