Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
asdf
asdf
Commits
caf86f63
Commit
caf86f63
authored
Jul 01, 2010
by
Francois-Rene Rideau
Browse files
2.108: newer ecl has builtin getuid, so we needn't use the FFI.
Using the FFI prevents the file from being loaded as source.
parent
a65d0e2f
Changes
1
Hide whitespace changes
Inline
Side-by-side
asdf.lisp
View file @
caf86f63
...
...
@@ -70,7 +70,7 @@
(
eval-when
(
:load-toplevel
:compile-toplevel
:execute
)
(
let*
((
asdf-version
;; the 1+ helps the version bumping script discriminate
(
subseq
"VERSION:2.10
7
"
(
1+
(
length
"VERSION"
))))
(
subseq
"VERSION:2.10
8
"
(
1+
(
length
"VERSION"
))))
(
existing-asdf
(
find-package
:asdf
))
(
vername
'
#:*asdf-version*
)
(
versym
(
and
existing-asdf
...
...
@@ -727,8 +727,12 @@ actually-existing directory."
#+
clisp
(
defun
get-uid
()
(
posix:uid
))
#+
sbcl
(
defun
get-uid
()
(
sb-unix:unix-getuid
))
#+
cmu
(
defun
get-uid
()
(
unix:unix-getuid
))
#+
ecl
(
ffi:clines
"#include <sys/types.h>"
"#include <unistd.h>"
)
#+
ecl
(
defun
get-uid
()
(
ffi:c-inline
()
()
:int
"getuid()"
:one-liner
t
))
#+
ecl
#.
(
cl:and
(
cl:<
ext:+ecl-version-number+
100601
)
'
(
ffi:clines
"#include <sys/types.h>"
"#include <unistd.h>"
))
#+
ecl
(
defun
get-uid
()
#.
(
cl:if
(
cl:<
ext:+ecl-version-number+
100601
)
'
(
ffi:c-inline
()
()
:int
"getuid()"
:one-liner
t
)
'
(
ext::getuid
)))
#+
allegro
(
defun
get-uid
()
(
excl.osi:getuid
))
#-
(
or
cmu
sbcl
clisp
allegro
ecl
)
(
defun
get-uid
()
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment