Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
8d817997
Commit
8d817997
authored
Jul 23, 2014
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
configure: Add a check for sys/ucontext.h and include it where appropriate.
parent
1b297742
Show whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
36 additions
and
41 deletions
+36
-41
configure
configure
+6
-6
configure.ac
configure.ac
+3
-3
server.c
dlls/ntdll/server.c
+3
-1
signal_arm.c
dlls/ntdll/signal_arm.c
+4
-2
signal_arm64.c
dlls/ntdll/signal_arm64.c
+3
-1
signal_i386.c
dlls/ntdll/signal_i386.c
+3
-8
signal_powerpc.c
dlls/ntdll/signal_powerpc.c
+4
-5
signal_x86_64.c
dlls/ntdll/signal_x86_64.c
+4
-11
config.h.in
include/config.h.in
+3
-3
ptrace.c
server/ptrace.c
+3
-1
No files found.
configure
View file @
8d817997
...
...
@@ -6812,13 +6812,13 @@ fi
done
for
ac_header
in
ucontext.h
for
ac_header
in
sys/
ucontext.h
do
:
ac_fn_c_check_header_compile
"
$LINENO
"
"
ucontext.h"
"ac_cv_header
_ucontext_h"
"#include <signal.h>
ac_fn_c_check_header_compile
"
$LINENO
"
"
sys/ucontext.h"
"ac_cv_header_sys
_ucontext_h"
"#include <signal.h>
"
if
test
"x
$ac_cv_header_ucontext_h
"
=
xyes
;
then
:
if
test
"x
$ac_cv_header_
sys_
ucontext_h
"
=
xyes
;
then
:
cat
>>
confdefs.h
<<
_ACEOF
#define HAVE_UCONTEXT_H 1
#define HAVE_
SYS_
UCONTEXT_H 1
_ACEOF
fi
...
...
@@ -6829,8 +6829,8 @@ done
for
ac_header
in
sys/thr.h
do
:
ac_fn_c_check_header_compile
"
$LINENO
"
"sys/thr.h"
"ac_cv_header_sys_thr_h"
"#include <sys/types.h>
#ifdef HAVE_UCONTEXT_H
#include <ucontext.h>
#ifdef HAVE_
SYS_
UCONTEXT_H
#include <
sys/
ucontext.h>
#endif
"
if
test
"x
$ac_cv_header_sys_thr_h
"
=
xyes
;
then
:
...
...
configure.ac
View file @
8d817997
...
...
@@ -631,12 +631,12 @@ AC_CHECK_HEADERS([resolv.h],,,
AC_CHECK_HEADERS([ifaddrs.h],,,[#include <sys/types.h>])
AC_CHECK_HEADERS(ucontext.h,,,[#include <signal.h>])
AC_CHECK_HEADERS(
sys/
ucontext.h,,,[#include <signal.h>])
AC_CHECK_HEADERS([sys/thr.h],,,
[#include <sys/types.h>
#ifdef HAVE_UCONTEXT_H
#include <ucontext.h>
#ifdef HAVE_
SYS_
UCONTEXT_H
#include <
sys/
ucontext.h>
#endif])
AC_CHECK_HEADERS([pthread_np.h],,,
...
...
dlls/ntdll/server.c
View file @
8d817997
...
...
@@ -63,8 +63,10 @@
#ifdef HAVE_SYS_UIO_H
#include <sys/uio.h>
#endif
#ifdef HAVE_SYS_UCONTEXT_H
# include <sys/ucontext.h>
#endif
#ifdef HAVE_SYS_THR_H
#include <sys/ucontext.h>
#include <sys/thr.h>
#endif
#ifdef HAVE_UNISTD_H
...
...
dlls/ntdll/signal_arm.c
View file @
8d817997
...
...
@@ -32,7 +32,6 @@
#ifdef HAVE_UNISTD_H
# include <unistd.h>
#endif
#ifdef HAVE_SYS_PARAM_H
# include <sys/param.h>
#endif
...
...
@@ -46,6 +45,9 @@
#ifdef HAVE_SYS_SIGNAL_H
# include <sys/signal.h>
#endif
#ifdef HAVE_SYS_UCONTEXT_H
# include <sys/ucontext.h>
#endif
#define NONAMELESSUNION
#define NONAMELESSSTRUCT
...
...
@@ -68,7 +70,7 @@ static pthread_key_t teb_key;
*/
#ifdef linux
#if
def __ANDROID__
#if
defined(__ANDROID__) && !defined(HAVE_SYS_UCONTEXT_H)
typedef
struct
ucontext
{
unsigned
long
uc_flags
;
...
...
dlls/ntdll/signal_arm64.c
View file @
8d817997
...
...
@@ -31,7 +31,6 @@
#ifdef HAVE_UNISTD_H
# include <unistd.h>
#endif
#ifdef HAVE_SYS_PARAM_H
# include <sys/param.h>
#endif
...
...
@@ -45,6 +44,9 @@
#ifdef HAVE_SYS_SIGNAL_H
# include <sys/signal.h>
#endif
#ifdef HAVE_SYS_UCONTEXT_H
# include <sys/ucontext.h>
#endif
#include "ntstatus.h"
#define WIN32_NO_STATUS
...
...
dlls/ntdll/signal_i386.c
View file @
8d817997
...
...
@@ -32,7 +32,6 @@
#ifdef HAVE_UNISTD_H
# include <unistd.h>
#endif
#ifdef HAVE_SYS_PARAM_H
# include <sys/param.h>
#endif
...
...
@@ -43,17 +42,18 @@
# include <sys/syscall.h>
# endif
#endif
#ifdef HAVE_SYS_VM86_H
# include <sys/vm86.h>
#endif
#ifdef HAVE_SYS_SIGNAL_H
# include <sys/signal.h>
#endif
#ifdef HAVE_SYS_SYSCTL_H
# include <sys/sysctl.h>
#endif
#ifdef HAVE_SYS_UCONTEXT_H
# include <sys/ucontext.h>
#endif
#include "ntstatus.h"
#define WIN32_NO_STATUS
...
...
@@ -313,7 +313,6 @@ typedef struct sigcontext SIGCONTEXT;
#ifdef _SCO_DS
#include <sys/regset.h>
#endif
#include <sys/ucontext.h>
typedef
struct
ucontext
SIGCONTEXT
;
#ifdef _SCO_DS
...
...
@@ -357,7 +356,6 @@ typedef struct ucontext SIGCONTEXT;
#define FPUX_sig(context) NULL
/* FIXME */
#elif defined (__APPLE__)
# include <sys/ucontext.h>
typedef
ucontext_t
SIGCONTEXT
;
...
...
@@ -407,9 +405,6 @@ typedef ucontext_t SIGCONTEXT;
#endif
#elif defined(__NetBSD__)
# include <sys/ucontext.h>
# include <sys/types.h>
# include <signal.h>
typedef
ucontext_t
SIGCONTEXT
;
...
...
dlls/ntdll/signal_powerpc.c
View file @
8d817997
...
...
@@ -28,10 +28,10 @@
#include <stdlib.h>
#include <stdarg.h>
#include <stdio.h>
#include <sys/types.h>
#ifdef HAVE_UNISTD_H
# include <unistd.h>
#endif
#ifdef HAVE_SYS_PARAM_H
# include <sys/param.h>
#endif
...
...
@@ -42,10 +42,12 @@
# include <sys/syscall.h>
# endif
#endif
#ifdef HAVE_SYS_SIGNAL_H
# include <sys/signal.h>
#endif
#ifdef HAVE_SYS_UCONTEXT_H
# include <sys/ucontext.h>
#endif
#include "ntstatus.h"
#define WIN32_NO_STATUS
...
...
@@ -94,9 +96,6 @@ static pthread_key_t teb_key;
#ifdef __APPLE__
# include <sys/ucontext.h>
# include <sys/types.h>
/* All Registers access - only for local access */
# define REG_sig(reg_name, context) ((context)->uc_mcontext->ss.reg_name)
# define FLOATREG_sig(reg_name, context) ((context)->uc_mcontext->fs.reg_name)
...
...
dlls/ntdll/signal_x86_64.c
View file @
8d817997
...
...
@@ -28,25 +28,22 @@
#include <stdlib.h>
#include <stdarg.h>
#include <stdio.h>
#ifdef HAVE_UCONTEXT_H
# include <ucontext.h>
#endif
#include <sys/types.h>
#ifdef HAVE_UNISTD_H
# include <unistd.h>
#endif
#ifdef HAVE_MACHINE_SYSARCH_H
# include <machine/sysarch.h>
#endif
#ifdef HAVE_SYS_PARAM_H
# include <sys/param.h>
#endif
#ifdef HAVE_SYS_SIGNAL_H
# include <sys/signal.h>
#endif
#ifdef HAVE_SYS_UCONTEXT_H
# include <sys/ucontext.h>
#endif
#define NONAMELESSUNION
#define NONAMELESSSTRUCT
...
...
@@ -165,7 +162,6 @@ extern int arch_prctl(int func, void *ptr);
#define FPU_sig(context) ((XMM_SAVE_AREA32 *)((context)->uc_mcontext.fpregs))
#elif defined(__FreeBSD__) || defined (__FreeBSD_kernel__)
#include <sys/ucontext.h>
#define RAX_sig(context) ((context)->uc_mcontext.mc_rax)
#define RBX_sig(context) ((context)->uc_mcontext.mc_rbx)
...
...
@@ -200,9 +196,6 @@ extern int arch_prctl(int func, void *ptr);
#define FPU_sig(context) ((XMM_SAVE_AREA32 *)((context)->uc_mcontext.mc_fpstate))
#elif defined(__NetBSD__)
#include <sys/ucontext.h>
#include <sys/types.h>
#include <signal.h>
#define RAX_sig(context) ((context)->uc_mcontext.__gregs[_REG_RAX])
#define RBX_sig(context) ((context)->uc_mcontext.__gregs[_REG_RBX])
...
...
include/config.h.in
View file @
8d817997
...
...
@@ -1038,6 +1038,9 @@
/* Define to 1 if you have the <sys/types.h> header file. */
#undef HAVE_SYS_TYPES_H
/* Define to 1 if you have the <sys/ucontext.h> header file. */
#undef HAVE_SYS_UCONTEXT_H
/* Define to 1 if you have the <sys/uio.h> header file. */
#undef HAVE_SYS_UIO_H
...
...
@@ -1077,9 +1080,6 @@
/* Define if you have the timezone variable */
#undef HAVE_TIMEZONE
/* Define to 1 if you have the <ucontext.h> header file. */
#undef HAVE_UCONTEXT_H
/* Define to 1 if you have the <unistd.h> header file. */
#undef HAVE_UNISTD_H
...
...
server/ptrace.c
View file @
8d817997
...
...
@@ -40,8 +40,10 @@
#ifdef HAVE_SYS_SYSCALL_H
# include <sys/syscall.h>
#endif
#ifdef HAVE_SYS_
THR
_H
#ifdef HAVE_SYS_
UCONTEXT
_H
# include <sys/ucontext.h>
#endif
#ifdef HAVE_SYS_THR_H
# include <sys/thr.h>
#endif
#include <unistd.h>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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