mirror of
https://gitlab.com/embeddable-common-lisp/ecl.git
synced 2026-01-21 12:03:40 -08:00
config.lsp.in: uname: fix build for windows platform (mingw32)
Windows doesn't have `sys/utsname.h' and uname in current form can't be used. It was carefully foreseen by a previous maintainer and works OK, but the problem emerges when cross-compiling from linux. Fixes
This commit is contained in:
parent
d212dd39c6
commit
7812f236a5
1 changed files with 2 additions and 2 deletions
|
|
@ -7,12 +7,12 @@
|
|||
;;
|
||||
(in-package "LISP")
|
||||
|
||||
#+(and (not ecl-min) (not nacl) uname)
|
||||
#+(and (not ecl-min) (not nacl) (not :mingw32) (not :msvc) (not :cygwin) uname)
|
||||
(ffi:clines "
|
||||
#include <sys/utsname.h>
|
||||
")
|
||||
|
||||
#+(and (not ecl-min) (not nacl) uname)
|
||||
#+(and (not ecl-min) (not nacl) (not :mingw32) (not :msvc) (not :cygwin) uname)
|
||||
(defun uname ()
|
||||
(ffi:c-inline () () :object "{
|
||||
cl_object output;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue