aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSean Whitton <spwhitton@spwhitton.name>2021-02-27 16:52:56 -0700
committerSean Whitton <spwhitton@spwhitton.name>2021-02-27 16:55:13 -0700
commit9bfaeee3bfb0fa8e1f08a13dec2a7f20c6e65c5e (patch)
treee3abf0808aacd5f3399122e80c94cc183a05644e
parent92668182d17c72fe912c02f656081563b2ec0373 (diff)
downloadconsfigurator-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.lisp3
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.