summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/Makefile.am3
-rw-r--r--lib/stubs/syscalls/README6
-rw-r--r--lib/tests/Makefile.am1
3 files changed, 9 insertions, 1 deletions
diff --git a/lib/Makefile.am b/lib/Makefile.am
index ab9eefe6..6251bdb8 100644
--- a/lib/Makefile.am
+++ b/lib/Makefile.am
@@ -52,7 +52,8 @@ endif
AM_CPPFLAGS = \
-I$(top_srcdir)/include/drm-uapi \
- -I$(top_srcdir)
+ -I$(top_srcdir) \
+ -I$(top_srcdir)/lib/stubs/syscalls
AM_CFLAGS = \
$(CWARNFLAGS) \
diff --git a/lib/stubs/syscalls/README b/lib/stubs/syscalls/README
new file mode 100644
index 00000000..f05b9a6f
--- /dev/null
+++ b/lib/stubs/syscalls/README
@@ -0,0 +1,6 @@
+This directory contains stub implementations for syscalls missing from libc.
+This provides a way to build IGT on an old system, but it will not run
+correctly if the kernel is missing the functionality provided. In order to
+add a new definition, follow the same directory hierarchy as the standard
+location in which the header is defined so we don't have to clutter the
+codebase to support old systems.
diff --git a/lib/tests/Makefile.am b/lib/tests/Makefile.am
index fb433d69..ad585b77 100644
--- a/lib/tests/Makefile.am
+++ b/lib/tests/Makefile.am
@@ -11,6 +11,7 @@ AM_CPPFLAGS = \
-I$(top_srcdir)/include/drm-uapi \
-I$(srcdir)/../.. \
-I$(srcdir)/.. \
+ -I$(top_srcdir)/lib/stubs/syscalls \
-include "$(srcdir)/../../lib/check-ndebug.h" \
-DIGT_DATADIR=\""$(abs_srcdir)"\" \
-D_GNU_SOURCE