mirror of
https://git.openafs.org/openafs.git
synced 2025-01-31 05:27:44 +00:00
sunos-support-cleanup-20020822
some things want ucontext.h. leave it there
This commit is contained in:
parent
5d36376c07
commit
76aa5ff218
@ -555,7 +555,7 @@ AC_CHECK_HEADERS(netinet/in.h netdb.h sys/fcntl.h sys/mnttab.h sys/mntent.h)
|
||||
AC_CHECK_HEADERS(mntent.h sys/vfs.h sys/param.h sys/fs_types.h)
|
||||
AC_CHECK_HEADERS(sys/mount.h strings.h termios.h signal.h)
|
||||
AC_CHECK_HEADERS(windows.h malloc.h winsock2.h direct.h io.h)
|
||||
AC_CHECK_HEADERS(security/pam_modules.h siad.h usersec.h)
|
||||
AC_CHECK_HEADERS(security/pam_modules.h siad.h usersec.h ucontext.h)
|
||||
|
||||
AC_CHECK_FUNCS(utimes random srandom getdtablesize snprintf re_comp re_exec)
|
||||
AC_CHECK_FUNCS(setprogname getprogname sigaction)
|
||||
|
@ -75,6 +75,6 @@
|
||||
#endif
|
||||
#endif /* KERNEL */
|
||||
|
||||
#define HAVE_UCONTEXT_H /* should be in afsconfig.h */
|
||||
#define USE_UCONTEXT /* should be in afsconfig.h */
|
||||
|
||||
#endif /* _PARAM_IA64_LINUX20_H_ */
|
||||
|
@ -54,6 +54,6 @@
|
||||
#define CMSERVERPREF
|
||||
#endif
|
||||
|
||||
#define HAVE_UCONTEXT_H /* should be in afsconfig.h */
|
||||
#define USE_UCONTEXT /* should be in afsconfig.h */
|
||||
|
||||
#endif /* AFS_PARAM_H */
|
||||
|
@ -20,7 +20,7 @@
|
||||
|
||||
#if !defined(KERNEL) && !defined(_KMEMUSER) && !defined(AFS_PTHREAD_ENV)
|
||||
#include <afs/param.h>
|
||||
#ifdef HAVE_UCONTEXT_H
|
||||
#if defined(USE_UCONTEXT) && defined(HAVE_UCONTEXT_H)
|
||||
#include <ucontext.h>
|
||||
#else
|
||||
#include <setjmp.h>
|
||||
@ -195,7 +195,7 @@ typedef struct lwp_pcb {
|
||||
#else
|
||||
struct lwp_context { /* saved context for dispatcher */
|
||||
char *topstack; /* ptr to top of process stack */
|
||||
#ifdef HAVE_UCONTEXT_H
|
||||
#if defined(USE_UCONTEXT) && defined(HAVE_UCONTEXT_H)
|
||||
ucontext_t ucontext;
|
||||
int state;
|
||||
#else /* !HAVE_UCONTEXT_H */
|
||||
|
@ -40,6 +40,9 @@ int PRE_EndPreempt()
|
||||
#else
|
||||
#include <sys/time.h>
|
||||
#include <signal.h>
|
||||
#ifdef HAVE_UCONTEXT_H
|
||||
#include <ucontext.h>
|
||||
#endif
|
||||
|
||||
#if defined(AFS_OSF_ENV) || defined(AFS_S390_LINUX20_ENV)
|
||||
int PRE_Block = 0; /* used in lwp.c and process.s */
|
||||
|
@ -27,7 +27,7 @@ extern int PRE_Block; /* used in lwp.c and process.s */
|
||||
extern char PRE_Block; /* used in lwp.c and process.s */
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_UCONTEXT_H
|
||||
#if defined(USE_UCONTEXT) && defined(HAVE_UCONTEXT_H)
|
||||
|
||||
afs_int32
|
||||
savecontext(ep, savearea, newsp)
|
||||
|
Loading…
x
Reference in New Issue
Block a user