From bba22c9c8cbdff50642e72c9af0bc4bf86567583 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Fri, 2 Nov 2018 16:49:49 +0100 Subject: [PATCH] system/FileDescriptor: check `__linux__` instead of `__linux` `__linux` is the deprecated non-standard macros which appears to be not present at all on PowerPC. Closes #398 --- NEWS | 1 + src/system/FileDescriptor.cxx | 2 +- src/system/FileDescriptor.hxx | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/NEWS b/NEWS index 1ba1e0495..33042d8a7 100644 --- a/NEWS +++ b/NEWS @@ -1,6 +1,7 @@ ver 0.21.1 (not yet released) * decoder - ffmpeg: fix build failure with non-standard FFmpeg installation path +* fix build failure on Linux-PowerPC ver 0.21 (2018/10/31) * configuration diff --git a/src/system/FileDescriptor.cxx b/src/system/FileDescriptor.cxx index f2516b872..719812294 100644 --- a/src/system/FileDescriptor.cxx +++ b/src/system/FileDescriptor.cxx @@ -76,7 +76,7 @@ FileDescriptor::IsSocket() const noexcept #endif -#ifdef __linux +#ifdef __linux__ bool FileDescriptor::Open(FileDescriptor dir, const char *pathname, diff --git a/src/system/FileDescriptor.hxx b/src/system/FileDescriptor.hxx index e3176df60..08d11cc43 100644 --- a/src/system/FileDescriptor.hxx +++ b/src/system/FileDescriptor.hxx @@ -116,7 +116,7 @@ public: return FileDescriptor(-1); } -#ifdef __linux +#ifdef __linux__ bool Open(FileDescriptor dir, const char *pathname, int flags, mode_t mode=0666) noexcept; #endif