aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--dos/getsetsl.c2
-rw-r--r--libinstaller/fs.c2
-rw-r--r--libinstaller/syslxmod.c2
3 files changed, 6 insertions, 0 deletions
diff --git a/dos/getsetsl.c b/dos/getsetsl.c
index 5260a2a1..c6e6ae73 100644
--- a/dos/getsetsl.c
+++ b/dos/getsetsl.c
@@ -5,6 +5,8 @@
#define _XOPEN_SOURCE 500 /* Required on glibc 2.x */
#define _BSD_SOURCE
+/* glibc 2.20 deprecates _BSD_SOURCE in favour of _DEFAULT_SOURCE */
+#define _DEFAULT_SOURCE 1
#include <inttypes.h>
#include <string.h>
#include <stddef.h>
diff --git a/libinstaller/fs.c b/libinstaller/fs.c
index 179629e9..19d69d3e 100644
--- a/libinstaller/fs.c
+++ b/libinstaller/fs.c
@@ -18,6 +18,8 @@
#define _XOPEN_SOURCE 500 /* Required on glibc 2.x */
#define _BSD_SOURCE
+/* glibc 2.20 deprecates _BSD_SOURCE in favour of _DEFAULT_SOURCE */
+#define _DEFAULT_SOURCE 1
#include <stdio.h>
#include <inttypes.h>
#include <string.h>
diff --git a/libinstaller/syslxmod.c b/libinstaller/syslxmod.c
index cc6e56a2..0ec41641 100644
--- a/libinstaller/syslxmod.c
+++ b/libinstaller/syslxmod.c
@@ -17,6 +17,8 @@
#define _XOPEN_SOURCE 500 /* Required on glibc 2.x */
#define _BSD_SOURCE
+/* glibc 2.20 deprecates _BSD_SOURCE in favour of _DEFAULT_SOURCE */
+#define _DEFAULT_SOURCE 1
#include <stdio.h>
#include <inttypes.h>
#include <string.h>