summaryrefslogtreecommitdiffstats
path: root/src/disk.c
diff options
context:
space:
mode:
authorPali Rohár <pali.rohar@gmail.com>2016-12-06 23:10:58 +0100
committerPali Rohár <pali.rohar@gmail.com>2016-12-06 23:10:58 +0100
commit5e79d651caee6b7a81097ae432b829e3da952261 (patch)
treeffaeb6d2a7b1618fb6fd78ab8541cc5284ba5373 /src/disk.c
parent676da477510cb1966a74273f89c8aa64654a1d49 (diff)
download0xFFFF-5e79d651caee6b7a81097ae432b829e3da952261.tar.bz2
all: Compile globally without _GNU_SOURCE, define _BSD_SOURCE or _GNU_SOURCE where needed
Diffstat (limited to 'src/disk.c')
-rw-r--r--src/disk.c6
1 files changed, 6 insertions, 0 deletions
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 <http://www.gnu.org/licenses/>.
*/
+#ifdef __linux__
+#ifndef _BSD_SOURCE
+#define _BSD_SOURCE
+#endif
+#endif
+
#include <fcntl.h>
#include <libgen.h>
#include <unistd.h>