diff options
author | Alasdair G Kergon <agk@redhat.com> | 2013-11-13 13:56:29 +0000 |
---|---|---|
committer | Alasdair G Kergon <agk@redhat.com> | 2013-11-13 13:56:29 +0000 |
commit | 527db4645fdbf10361797c871b9cadf6c5e73405 (patch) | |
tree | 3eac6d4dc4efc779d9dd71b2037b09811407850d /libdm/libdm-common.c | |
parent | d8085edf65006a50608edb821b3d30947abaa838 (diff) | |
download | lvm2-527db4645fdbf10361797c871b9cadf6c5e73405.tar.gz |
gcc: replace #ifdef linux with __linux__
Diffstat (limited to 'libdm/libdm-common.c')
-rw-r--r-- | libdm/libdm-common.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libdm/libdm-common.c b/libdm/libdm-common.c index 9a52f2ebf..febcd0e4b 100644 --- a/libdm/libdm-common.c +++ b/libdm/libdm-common.c @@ -32,7 +32,7 @@ # include <libudev.h> #endif -#ifdef linux +#ifdef __linux__ # include <linux/fs.h> #endif @@ -1069,7 +1069,7 @@ static int _rename_dev_node(const char *old_name, const char *new_name, return 1; } -#ifdef linux +#ifdef __linux__ static int _open_dev_node(const char *dev_name) { int fd = -1; |