mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
pipewire-v4l2: disable _FORTIFY_SOURCE when defining override functions
_FORTIFY_SOURCE defines always_inline versions of open etc. functions, which conflict with our exported override versions. Disable it for the file that defines the override functions.
This commit is contained in:
parent
5fbda82cc3
commit
240d212822
1 changed files with 10 additions and 0 deletions
|
|
@ -22,6 +22,16 @@
|
|||
* DEALINGS IN THE SOFTWARE.
|
||||
*/
|
||||
|
||||
|
||||
/*
|
||||
* We need to export open* etc., but _FORTIFY_SOURCE defines conflicting
|
||||
* always_inline versions. Disable _FORTIFY_SOURCE for this file, so we
|
||||
* can define our overrides.
|
||||
*/
|
||||
#ifdef _FORTIFY_SOURCE
|
||||
#undef _FORTIFY_SOURCE
|
||||
#endif
|
||||
|
||||
#include <stdio.h>
|
||||
#include <errno.h>
|
||||
#include <fcntl.h>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue