diff options
author | Sean Whitton <spwhitton@spwhitton.name> | 2021-02-27 16:52:56 -0700 |
---|---|---|
committer | Sean Whitton <spwhitton@spwhitton.name> | 2021-02-27 16:55:13 -0700 |
commit | 9bfaeee3bfb0fa8e1f08a13dec2a7f20c6e65c5e (patch) | |
tree | e3abf0808aacd5f3399122e80c94cc183a05644e | |
parent | 92668182d17c72fe912c02f656081563b2ec0373 (diff) | |
download | consfigurator-9bfaeee3bfb0fa8e1f08a13dec2a7f20c6e65c5e.tar.gz |
CHROOT.FORK: wrap (require "sb-posix") in an EVAL-WHEN
This is needed for headless compilation of Consfigurator to succeed.
Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
-rw-r--r-- | src/connection/chroot/fork.lisp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/connection/chroot/fork.lisp b/src/connection/chroot/fork.lisp index 48b46d1..cc9c590 100644 --- a/src/connection/chroot/fork.lisp +++ b/src/connection/chroot/fork.lisp @@ -16,7 +16,8 @@ ;;; along with this program. If not, see <http://www.gnu.org/licenses/>. (in-package :consfigurator.connection.chroot.fork) -#+sbcl (require "sb-posix") +#+sbcl (eval-when (:compile-toplevel :load-toplevel :execute) + (require "sb-posix")) ;; use only implementation-specific fork and waitpid calls to avoid thread ;; woes. chroot(2), however, should be okay. |