diff --git a/gnu/packages/virtualization.scm b/gnu/packages/virtualization.scm index 0210c2936e7d39eb47a8822fe520f10e3c3046bb..d9cda7696d9844ec594f508c15060d36e0f32d01 100644 --- a/gnu/packages/virtualization.scm +++ b/gnu/packages/virtualization.scm @@ -381,6 +381,12 @@ (define-public lxc "/share/doc/" ,name "-" ,version) "--sysconfdir=/etc" "--localstatedir=/var") + #:make-flags + ;; Treat the kernel headers as system headers to silence + ;; compiler warnings from those. + (list (string-append "C_INCLUDE_PATH=" + (assoc-ref %build-inputs "kernel-headers") + "/include")) #:phases (modify-phases %standard-phases (replace 'install