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
e977d6ca
Commit
e977d6ca
authored
Sep 05, 1999
by
Ron Record
Committed by
Alexandre Julliard
Sep 05, 1999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added support of __thr_errno for reentrance on UnixWare.
parent
0ded0fe3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
47 additions
and
8 deletions
+47
-8
configure
configure
+0
-0
configure.in
configure.in
+38
-8
acconfig.h
include/acconfig.h
+3
-0
config.h.in
include/config.h.in
+3
-0
sysdeps.c
scheduler/sysdeps.c
+3
-0
No files found.
configure
View file @
e977d6ca
This diff is collapsed.
Click to expand it.
configure.in
View file @
e977d6ca
...
@@ -93,7 +93,7 @@ AC_CHECK_LIB(ossaudio,_oss_ioctl)
...
@@ -93,7 +93,7 @@ AC_CHECK_LIB(ossaudio,_oss_ioctl)
dnl Check for -lw for Solaris
dnl Check for -lw for Solaris
AC_CHECK_LIB(w,iswalnum)
AC_CHECK_LIB(w,iswalnum)
dnl Check for -lnsl for Solaris
dnl Check for -lnsl for Solaris
AC_CHECK_FUNCS(gethostbyname,,
AC_CHECK_LIB(nsl,gethostbyname
))
AC_CHECK_FUNCS(gethostbyname,,
AC_CHECK_LIB(nsl, gethostbyname, X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl", AC_CHECK_LIB(socket, gethostbyname, X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl", , -lnsl), -lsocket
))
dnl Check for -lsocket for Solaris
dnl Check for -lsocket for Solaris
AC_CHECK_FUNCS(connect,,AC_CHECK_LIB(socket,connect))
AC_CHECK_FUNCS(connect,,AC_CHECK_LIB(socket,connect))
dnl Check for -lxpg4 for FreeBSD
dnl Check for -lxpg4 for FreeBSD
...
@@ -351,21 +351,35 @@ then
...
@@ -351,21 +351,35 @@ then
DLLFLAGS="-fPIC"
DLLFLAGS="-fPIC"
LDSHARED="\$(CC) -shared -Wl,-soname,libwine.so"
LDSHARED="\$(CC) -shared -Wl,-soname,libwine.so"
else
else
AC_CACHE_CHECK("whether we can build a
NetBSD
dll",
AC_CACHE_CHECK("whether we can build a
UnixWare
dll",
ac_cv_c_dll_netbsd
,
ac_cv_c_dll_unixware
,
[saved_cflags=$CFLAGS
[saved_cflags=$CFLAGS
CFLAGS="$CFLAGS -fPIC -
Bshareable -Bforcearchive
"
CFLAGS="$CFLAGS -fPIC -
Wl,-G,conftest.so.1.0
"
AC_TRY_LINK(,[return 1],ac_cv_c_dll_
netbsd="yes",ac_cv_c_dll_netbsd
="no")
AC_TRY_LINK(,[return 1],ac_cv_c_dll_
unixware="yes",ac_cv_c_dll_unixware
="no")
CFLAGS=$saved_cflags
CFLAGS=$saved_cflags
])
])
if test "$ac_cv_c_dll_
netbsd
" = "yes"
if test "$ac_cv_c_dll_
unixware
" = "yes"
then
then
BUILDFLAGS="-pic"
BUILDFLAGS="-pic"
DLLFLAGS="-fPIC"
DLLFLAGS="-fPIC"
LDSHARED="ld -Bshareable -Bforcearchive"
LDSHARED="\$(CC) -Wl,-G,-h,/usr/local/lib/libwine.so"
else
AC_CACHE_CHECK("whether we can build a NetBSD dll",
ac_cv_c_dll_netbsd,
[saved_cflags=$CFLAGS
CFLAGS="$CFLAGS -fPIC -Bshareable -Bforcearchive"
AC_TRY_LINK(,[return 1],ac_cv_c_dll_netbsd="yes",ac_cv_c_dll_netbsd="no")
CFLAGS=$saved_cflags
])
if test "$ac_cv_c_dll_netbsd" = "yes"
then
BUILDFLAGS="-pic"
DLLFLAGS="-fPIC"
LDSHARED="ld -Bshareable -Bforcearchive"
fi
fi
fi
fi
fi
if test "$ac_cv_c_dll_linux" = "no" -a "$ac_cv_c_dll_netbsd" = "no"
if test "$ac_cv_c_dll_linux" = "no" -a "$ac_cv_c_dll_
unixware" = "no" -a "$ac_cv_c_dll_
netbsd" = "no"
then
then
LIB_TARGET="libwine.a"
LIB_TARGET="libwine.a"
fi
fi
...
@@ -428,6 +442,22 @@ then
...
@@ -428,6 +442,22 @@ then
AC_DEFINE(HAVE___ERRNO)
AC_DEFINE(HAVE___ERRNO)
wine_cv_libc_reentrant=___errno
wine_cv_libc_reentrant=___errno
fi
fi
dnl
dnl UnixWare style errno location
dnl
AC_CACHE_CHECK("for reentrant libc: __thr_errno", wine_cv_libc_r__thr_errno,
[AC_TRY_RUN([int myerrno = 0;
char buf[256];
int *__thr_errno(){return &myerrno;}
main(){connect(0,buf,255); exit(!myerrno);}],
wine_cv_libc_r__thr_errno=yes, wine_cv_libc_r__thr_errno=no,
wine_cv_libc_r__thr_errno=yes )
])
if test "$wine_cv_libc_r__thr_errno" = "yes"
then
AC_DEFINE(HAVE__THR_ERRNO)
wine_cv_libc_reentrant=__thr_errno
fi
if test "$wine_cv_libc_reentrant" = "no"
if test "$wine_cv_libc_reentrant" = "no"
then
then
AC_DEFINE(NO_REENTRANT_LIBC)
AC_DEFINE(NO_REENTRANT_LIBC)
...
...
include/acconfig.h
View file @
e977d6ca
...
@@ -45,6 +45,9 @@
...
@@ -45,6 +45,9 @@
/* Define if libc uses ___errno for reentrant errno */
/* Define if libc uses ___errno for reentrant errno */
#undef HAVE___ERRNO
#undef HAVE___ERRNO
/* Define if libc uses __thr_errno for reentrant errno */
#undef HAVE__THR_ERRNO
/* Define if all debug messages are to be compiled out */
/* Define if all debug messages are to be compiled out */
#undef NO_DEBUG_MSGS
#undef NO_DEBUG_MSGS
...
...
include/config.h.in
View file @
e977d6ca
...
@@ -82,6 +82,9 @@
...
@@ -82,6 +82,9 @@
/* Define if libc uses ___errno for reentrant errno */
/* Define if libc uses ___errno for reentrant errno */
#undef HAVE___ERRNO
#undef HAVE___ERRNO
/* Define if libc uses __thr_errno for reentrant errno */
#undef HAVE__THR_ERRNO
/* Define if all debug messages are to be compiled out */
/* Define if all debug messages are to be compiled out */
#undef NO_DEBUG_MSGS
#undef NO_DEBUG_MSGS
...
...
scheduler/sysdeps.c
View file @
e977d6ca
...
@@ -72,6 +72,9 @@ int *__error()
...
@@ -72,6 +72,9 @@ int *__error()
#ifdef HAVE___ERRNO
#ifdef HAVE___ERRNO
int
*
___errno
()
int
*
___errno
()
#endif
#endif
#ifdef HAVE__THR_ERRNO
int
*
__thr_errno
()
#endif
{
{
if
(
!
init_done
)
return
perrno
;
if
(
!
init_done
)
return
perrno
;
#ifdef NO_REENTRANT_X11
#ifdef NO_REENTRANT_X11
...
...
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