[igt-dev] [PATCH i-g-t 0/2] Fix i-g-t on old systems

Lucas De Marchi lucas.demarchi at intel.com
Thu Jul 19 20:54:43 UTC 2018


IGT now requires memfd_create() which is not available on old versions
of glibc (or some alternative libcs).  This provides a minimal intrusive
way to keep building on those old systems without polluting the code
with a compatibility layer.

The approach is similar to what I've been using in other projects like
systemd, kmod, ardupilot, etc. The syscall numbers came from systemd.

Lucas De Marchi (2):
  build: provide include for missing syscalls
  stubs: provide implementation for memfd_create

 lib/stubs/syscall/README     |  6 ++++++
 lib/stubs/syscall/sys/mman.h | 37 ++++++++++++++++++++++++++++++++++++
 meson.build                  |  5 ++++-
 3 files changed, 47 insertions(+), 1 deletion(-)
 create mode 100644 lib/stubs/syscall/README
 create mode 100644 lib/stubs/syscall/sys/mman.h

-- 
2.17.1



More information about the igt-dev mailing list