Changeset 14281


Ignore:
Timestamp:
Sep 17, 2010, 10:50:27 PM (9 years ago)
Author:
gb
Message:

Do sigaltstack() via syscall on Android, because the C library doesn't.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/source/lisp-kernel/unix-calls.c

    r13606 r14281  
    144144  return kill(getpid(), signum);
    145145}
     146
     147#ifdef ANDROID
     148/* I for one welcome our new Android overlords. */
     149#ifndef __NR_sigaltstack
     150#define __NR_sigaltstack                (__NR_SYSCALL_BASE+186)
     151#endif
     152int
     153sigaltstack(stack_t *in, stack_t *out)
     154{
     155  return syscall(__NR_sigaltstack,in,out);
     156}
     157#endif
Note: See TracChangeset for help on using the changeset viewer.