Commit bba22c9c authored by Max Kellermann's avatar Max Kellermann

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
parent 694c437a
ver 0.21.1 (not yet released) ver 0.21.1 (not yet released)
* decoder * decoder
- ffmpeg: fix build failure with non-standard FFmpeg installation path - ffmpeg: fix build failure with non-standard FFmpeg installation path
* fix build failure on Linux-PowerPC
ver 0.21 (2018/10/31) ver 0.21 (2018/10/31)
* configuration * configuration
......
...@@ -76,7 +76,7 @@ FileDescriptor::IsSocket() const noexcept ...@@ -76,7 +76,7 @@ FileDescriptor::IsSocket() const noexcept
#endif #endif
#ifdef __linux #ifdef __linux__
bool bool
FileDescriptor::Open(FileDescriptor dir, const char *pathname, FileDescriptor::Open(FileDescriptor dir, const char *pathname,
......
...@@ -116,7 +116,7 @@ public: ...@@ -116,7 +116,7 @@ public:
return FileDescriptor(-1); return FileDescriptor(-1);
} }
#ifdef __linux #ifdef __linux__
bool Open(FileDescriptor dir, const char *pathname, bool Open(FileDescriptor dir, const char *pathname,
int flags, mode_t mode=0666) noexcept; int flags, mode_t mode=0666) noexcept;
#endif #endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment