1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

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 <mpatocka@redhat.com>
This commit is contained in:
mpatocka@redhat.com 2013-10-17 11:14:07 +02:00 committed by Zdenek Kabelac
parent 3924a041ba
commit efd1dc6bd3
2 changed files with 2 additions and 1 deletions

View File

@ -1,5 +1,6 @@
Version 1.02.83 Version 1.02.83
================================== ==================================
Use __linux__ instead of linux define to make libdevmapper.h C compliant.
Version 1.02.82 - 4th October 2013 Version 1.02.82 - 4th October 2013
================================== ==================================

View File

@ -21,7 +21,7 @@
#include <sys/types.h> #include <sys/types.h>
#include <sys/stat.h> #include <sys/stat.h>
#ifdef linux #ifdef __linux__
# include <linux/types.h> # include <linux/types.h>
#endif #endif