package/lxc: fix compilation with stub memfd_create
authorPatrick Havelange <patrick.havelange@essensium.com>
Tue, 22 Oct 2019 12:41:48 +0000 (14:41 +0200)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Tue, 22 Oct 2019 19:38:25 +0000 (21:38 +0200)
commit0d6b305e52fb57b831333afd68f44f2001c6fa15
tree09429a8b4fd73e5b542bc7e49fb93b00d73be156
parent4c80424b0d913599d1e80e642345b4eb0e45bbf3
package/lxc: fix compilation with stub memfd_create

This fixes compilation issue in case memfd_create is a stub in libc.
Patch already merged in lxc master branch
(344b8ee293f4d3730a70a6ccaa03d7e4a516ae95).

Copy of the original commit log:

In case the internal memfd_create has to be used, make sure we don't
clash with the already existing memfd_create function from glibc.

This can happen if this glibc function is a stub. In this case, at
./configure time, the test for this function will return false, however
the declaration of that function is still available. This leads to
compilation errors.

Signed-off-by: Patrick Havelange <patrick.havelange@essensium.com>
Reviewed-by: Matt Weber <matthew.weber@rockwellcollins.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
package/lxc/0001-syscall_wrappers-rename-internal-memfd_create-to-mem.patch [new file with mode: 0644]