[ASan] Make sure IOC_DIRMASK is undefined before redefining it.

llvm-svn: 202410
This commit is contained in:
Alexander Potapenko 2014-02-27 16:46:06 +00:00
parent 21039aac60
commit e8c311a40c
1 changed files with 3 additions and 0 deletions

View File

@ -631,6 +631,9 @@ namespace __sanitizer {
#define IOC_NRMASK ((1 << IOC_NRBITS) - 1)
#define IOC_TYPEMASK ((1 << IOC_TYPEBITS) - 1)
#define IOC_SIZEMASK ((1 << IOC_SIZEBITS) - 1)
#if defined(IOC_DIRMASK)
#undef IOC_DIRMASK
#endif
#define IOC_DIRMASK ((1 << IOC_DIRBITS) - 1)
#define IOC_NRSHIFT 0
#define IOC_TYPESHIFT (IOC_NRSHIFT + IOC_NRBITS)