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
This commit is contained in:
Max Kellermann 2018-11-02 16:49:49 +01:00
parent 694c437a2c
commit bba22c9c8c
3 changed files with 3 additions and 2 deletions

1
NEWS
View File

@ -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

View File

@ -76,7 +76,7 @@ FileDescriptor::IsSocket() const noexcept
#endif
#ifdef __linux
#ifdef __linux__
bool
FileDescriptor::Open(FileDescriptor dir, const char *pathname,

View File

@ -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