fix warning in pc posix simulator#1456
Conversation
Avoid _GNU_SOURCE redefined warning, and fix #ifdef __APPLE__
|
| * `process handle SIGUSR1 -n true -p false -s false` | ||
| *----------------------------------------------------------*/ | ||
| #ifdef __linux__ | ||
| #if defined(__linux__) && !defined(_GNU_SOURCE) |
There was a problem hiding this comment.
Why did you need this change? Are you seeing a redefinition warning? If so, what command are you using to run the Posix simulator?
There was a problem hiding this comment.
Some old gcc version complain with redefined warning. The second one with every gcc version and -Wundef: GCC/Posix/port.c:308:9: warning: "APPLE" is not defined, evaluates to 0 [-Wundef]
|
How did you verify your change? I'm assuming you must have ran the Posix simulator to have seen these issues. |
Yes, I started to use the posix simulator in my projects several years ago, it works fine. |



Avoid _GNU_SOURCE redefined warning, and fix #ifdef APPLE
Description
Test Steps
Checklist:
Related Issue
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.