From efd1dc6bd3e38f9a98f67db28537c5655992c6f9 Mon Sep 17 00:00:00 2001 From: "mpatocka@redhat.com" Date: Thu, 17 Oct 2013 11:14:07 +0200 Subject: [PATCH] headers: use __linux__ instead of linux This file may be included by other programs, so it should be compliant with the C standard. * use __linux__ instead of linux - __linux__ is always defined, linux is not defined when gcc runs in standard-compliant mode (with -std=c89 or -std=c99) because the C standard doesn't allow polluting namespace with arbitrary defines. Signed-off-by: Mikulas Patocka --- WHATS_NEW_DM | 1 + libdm/libdevmapper.h | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/WHATS_NEW_DM b/WHATS_NEW_DM index 6287fb4d1..cf1cb1806 100644 --- a/WHATS_NEW_DM +++ b/WHATS_NEW_DM @@ -1,5 +1,6 @@ Version 1.02.83 ================================== + Use __linux__ instead of linux define to make libdevmapper.h C compliant. Version 1.02.82 - 4th October 2013 ================================== diff --git a/libdm/libdevmapper.h b/libdm/libdevmapper.h index aaf00b2e5..adfbb76bf 100644 --- a/libdm/libdevmapper.h +++ b/libdm/libdevmapper.h @@ -21,7 +21,7 @@ #include #include -#ifdef linux +#ifdef __linux__ # include #endif