From 5e79d651caee6b7a81097ae432b829e3da952261 Mon Sep 17 00:00:00 2001 From: Pali Rohár Date: Tue, 6 Dec 2016 23:10:58 +0100 Subject: all: Compile globally without _GNU_SOURCE, define _BSD_SOURCE or _GNU_SOURCE where needed --- src/disk.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/disk.c') diff --git a/src/disk.c b/src/disk.c index b8e9f51..11df4af 100644 --- a/src/disk.c +++ b/src/disk.c @@ -16,6 +16,12 @@ along with this program. If not, see . */ +#ifdef __linux__ +#ifndef _BSD_SOURCE +#define _BSD_SOURCE +#endif +#endif + #include #include #include -- cgit v1.2.3