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:
Pauli Virtanen 2022-07-10 16:05:27 +03:00
parent 5fbda82cc3
commit 240d212822

View file

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