mirror of
https://github.com/Genymobile/scrcpy.git
synced 2025-04-20 19:45:00 +00:00
Fix feature test macro
The expected feature test macro is _POSIX_C_SOURCE, not _POSIX_SOURCE. Fixes #1726 <https://github.com/Genymobile/scrcpy/issues/1726>
This commit is contained in:
parent
c243fd4c3f
commit
dd73a71a15
1 changed files with 3 additions and 3 deletions
|
@ -1,6 +1,6 @@
|
|||
// for portability
|
||||
#define _POSIX_SOURCE // for kill()
|
||||
#define _BSD_SOURCE // for readlink()
|
||||
// for portability (kill, readlink, strdup, strtok_r)
|
||||
#define _POSIX_C_SOURCE 200809L
|
||||
#define _BSD_SOURCE
|
||||
|
||||
// modern glibc will complain without this
|
||||
#define _DEFAULT_SOURCE
|
||||
|
|
Loading…
Add table
Reference in a new issue