Fix GNU/non-Linux failure to build because of ipc/chromium/src/base/dir_reader_posix.h
authorMike Hommey <mh@glandium.org>
Fri, 18 Nov 2011 10:28:30 +0000 (11:28 +0100)
committerCarsten Schoenert <c.schoenert@t-online.de>
Thu, 12 Sep 2019 14:52:34 +0000 (15:52 +0100)
Gbp-Pq: Topic porting-kfreebsd-hurd
Gbp-Pq: Name Fix-GNU-non-Linux-failure-to-build-because-of-ipc-ch.patch

ipc/chromium/src/base/dir_reader_posix.h

index feb44660ef188f8dca906f028861c51fee0a676c..8c8e4f65531383a05d78225e4f50b7a8f25c7075 100644 (file)
@@ -20,7 +20,7 @@
 // seems worse than falling back to enumerating all file descriptors so we will
 // probably never implement this on the Mac.
 
-#if defined(OS_LINUX)
+#if defined(OS_LINUX) && defined(__linux__)
 #include "base/dir_reader_linux.h"
 #elif defined(OS_BSD) && !defined(__GLIBC__)
 #include "base/dir_reader_bsd.h"
@@ -30,7 +30,7 @@
 
 namespace base {
 
-#if defined(OS_LINUX)
+#if defined(OS_LINUX) && defined(__linux__)
 typedef DirReaderLinux DirReaderPosix;
 #elif defined(OS_BSD) && !defined(__GLIBC__)
 typedef DirReaderBSD DirReaderPosix;