openSUSE / catatonit

A container init that is so simple it's effectively brain-dead.
GNU General Public License v2.0
188 stars 18 forks source link

fix build with kernel < 5.9 #24

Closed ffontaine closed 1 year ago

ffontaine commented 2 years ago

linux/close_range.h is only available since kernel 5.9 and https://github.com/torvalds/linux/commit/60997c3d45d9a67daf01c56d805ae4fec37e0bd8 resulting in the following build failure:

catatonit.c:39:11: fatal error: linux/close_range.h: No such file or directory
   39 | # include <linux/close_range.h>
      |           ^~~~~~~~~~~~~~~~~~~~~

Fixes:

Signed-off-by: Fabrice Fontaine fontaine.fabrice@gmail.com

cyphar commented 1 year ago

Can you please rebase this? We have changed the license from GPL-3.0-or-later to GPL-2.0-or-later and we need you to rebase it in order to confirm that you agree with the new license terms.

ffontaine commented 1 year ago

Done

cyphar commented 1 year ago

I did a proper rebase (git rebase origin/main) to clean up the history. Thanks for the patch!