file-systems: Use (guix build syscalls) at build time if needed.
* gnu/build/file-systems.scm: Wrap 'module-use!' statement in 'eval-when'.
This commit is contained in:
parent
0577ddc45d
commit
2de3cd8972
1 changed files with 4 additions and 3 deletions
|
|
@ -53,9 +53,10 @@
|
||||||
;; 'mount' is already defined in the statically linked Guile used for initial
|
;; 'mount' is already defined in the statically linked Guile used for initial
|
||||||
;; RAM disks, but in all other cases the (guix build syscalls) module contains
|
;; RAM disks, but in all other cases the (guix build syscalls) module contains
|
||||||
;; the mount binding.
|
;; the mount binding.
|
||||||
(unless (defined? 'mount)
|
(eval-when (expand load eval)
|
||||||
(module-use! (current-module)
|
(unless (defined? 'mount)
|
||||||
(resolve-interface '(guix build syscalls))))
|
(module-use! (current-module)
|
||||||
|
(resolve-interface '(guix build syscalls)))))
|
||||||
|
|
||||||
;; Linux mount flags, from libc's <sys/mount.h>.
|
;; Linux mount flags, from libc's <sys/mount.h>.
|
||||||
(define MS_RDONLY 1)
|
(define MS_RDONLY 1)
|
||||||
|
|
|
||||||
Reference in a new issue