~shunter/posix-shm

3387b66854a5bd2906c1eeb62469f193903320e2 — Ron Dahlgren 7 months ago 6e56c45
Fixes compilation errors on macos
2 files changed, 16 insertions(+), 3 deletions(-)

M ffi/ffi.lisp
M ffi/grovel.lisp
M ffi/ffi.lisp => ffi/ffi.lisp +4 -2
@@ 8,17 8,19 @@



#-darwin
(define-foreign-library libc
  (:unix (:or "libc.so.6" "libc.so"))
  (:default "libc"))

#-openbsd
#-(or openbsd darwin)
(define-foreign-library librt
  (:unix (:or "librt.so.1" "librt.so"))
  (:default "librt"))

#-darwin
(use-foreign-library libc)
#-openbsd
#-(or openbsd darwin)
(use-foreign-library librt)

(defcfun "strerror" :string

M ffi/grovel.lisp => ffi/grovel.lisp +12 -1
@@ 63,9 63,20 @@
  (st-blksize "st_blksize" :type blksize)
  (st-blocks "st_blocks" :type blkcnt)

  #-darwin
  (st-atim "st_atim" :type timespec)
  #+darwin
  (st-atim "st_atimespec" :type timespec)
  #-darwin
  (st-mtim "st_mtim" :type timespec)
  (st-ctim "st_ctim" :type timespec))
  #+darwin
  (st-atim "st_mtimespec" :type timespec)
  #-darwin
  (st-ctim "st_ctim" :type timespec)
  #+darwin
  (st-atim "st_ctimespec" :type timespec)

  )

(constantenum c-error
  ((:eacces "EACCES")