Ignore:
Timestamp:
Dec 23, 2010, 10:07:41 AM (9 years ago)
Author:
gb
Message:

Android ("bionic" C library) doesn't define some things (sysexits - #$EX_* -
constants) or they're not in the headers we parse.
Still need to define :link_map, :ucontext structures and work around
missing #_getifaddrs.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/source/level-1/l1-callbacks.lisp

    r13067 r14510  
    127127  #-windows-target
    128128  (#_mmap (%null-ptr)
    129           (#_getpagesize)
     129          #-android-target (#_getpagesize) #+android-target (#_sysconf #$_SC_PAGE_SIZE)
    130130          (logior #$PROT_READ #$PROT_WRITE #$PROT_EXEC)
    131131          (logior #$MAP_PRIVATE #$MAP_ANON)
     
    143143
    144144(defun reset-callback-storage ()
    145   (setq *available-bytes-for-callbacks* #-windows-target (#_getpagesize) #+windows-target (ash 1 16)
     145  (setq *available-bytes-for-callbacks* #-windows-target #-android-target (#_getpagesize) #+android-target (#_sysconf #$_SC_PAGE_SIZE) #+windows-target (ash 1 16)
    146146        *current-callback-page* (%make-executable-page)))
    147147
Note: See TracChangeset for help on using the changeset viewer.