Commit dd0242de authored by Alexandre Julliard's avatar Alexandre Julliard

Remove the dummy pthread functions and use -lpthread instead to

resolve missing symbols in GL libs.
parent f89f3df1
...@@ -8198,6 +8198,10 @@ if test $ac_cv_lib_GLU_gluLookAt = yes; then ...@@ -8198,6 +8198,10 @@ if test $ac_cv_lib_GLU_gluLookAt = yes; then
fi fi
if test -n "$OPENGL_LIBS"
then
OPENGL_LIBS="$OPENGL_LIBS -lpthread"
fi
fi fi
fi fi
fi fi
...@@ -13370,11 +13374,6 @@ fi ...@@ -13370,11 +13374,6 @@ fi
for ac_func in \ for ac_func in \
_lwp_create \ _lwp_create \
_lwp_self \ _lwp_self \
...@@ -13408,11 +13407,6 @@ for ac_func in \ ...@@ -13408,11 +13407,6 @@ for ac_func in \
pclose \ pclose \
popen \ popen \
pread \ pread \
pthread_getspecific \
pthread_key_create \
pthread_mutex_lock \
pthread_mutex_unlock \
pthread_setspecific \
pwrite \ pwrite \
rfork \ rfork \
select \ select \
......
...@@ -341,6 +341,10 @@ This prevents linking to OpenGL. Delete the file and restart configure.]) ...@@ -341,6 +341,10 @@ This prevents linking to OpenGL. Delete the file and restart configure.])
,, ,,
$OPENGL_LIBS $X_LIBS $X_PRE_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $OPENGL_LIBS $X_LIBS $X_PRE_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS
) )
if test -n "$OPENGL_LIBS"
then
OPENGL_LIBS="$OPENGL_LIBS -lpthread"
fi
fi fi
fi fi
fi fi
...@@ -958,11 +962,6 @@ AC_CHECK_FUNCS(\ ...@@ -958,11 +962,6 @@ AC_CHECK_FUNCS(\
pclose \ pclose \
popen \ popen \
pread \ pread \
pthread_getspecific \
pthread_key_create \
pthread_mutex_lock \
pthread_mutex_unlock \
pthread_setspecific \
pwrite \ pwrite \
rfork \ rfork \
select \ select \
......
...@@ -395,21 +395,6 @@ ...@@ -395,21 +395,6 @@
/* Define to 1 if you have the `pread' function. */ /* Define to 1 if you have the `pread' function. */
#undef HAVE_PREAD #undef HAVE_PREAD
/* Define to 1 if you have the `pthread_getspecific' function. */
#undef HAVE_PTHREAD_GETSPECIFIC
/* Define to 1 if you have the `pthread_key_create' function. */
#undef HAVE_PTHREAD_KEY_CREATE
/* Define to 1 if you have the `pthread_mutex_lock' function. */
#undef HAVE_PTHREAD_MUTEX_LOCK
/* Define to 1 if you have the `pthread_mutex_unlock' function. */
#undef HAVE_PTHREAD_MUTEX_UNLOCK
/* Define to 1 if you have the `pthread_setspecific' function. */
#undef HAVE_PTHREAD_SETSPECIFIC
/* Define to 1 if you have the <pty.h> header file. */ /* Define to 1 if you have the <pty.h> header file. */
#undef HAVE_PTY_H #undef HAVE_PTY_H
......
...@@ -10,7 +10,6 @@ EXTRALIBS = $(LIBPORT) @DLLIBS@ @CRTLIBS@ ...@@ -10,7 +10,6 @@ EXTRALIBS = $(LIBPORT) @DLLIBS@ @CRTLIBS@
C_SRCS = \ C_SRCS = \
config.c \ config.c \
debug.c \ debug.c \
errno.c \
ldt.c \ ldt.c \
loader.c loader.c
......
/*
* Wine library reentrant errno support
*
* Copyright 1998 Alexandre Julliard
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#include "config.h"
#include <assert.h>
#ifndef HAVE_NPTL
/***********************************************************************
* pthread functions
*
* FIXME: should find a better place for these
*/
#ifndef HAVE_PTHREAD_GETSPECIFIC
void pthread_getspecific() { assert(0); }
#endif
#ifndef HAVE_PTHREAD_KEY_CREATE
void pthread_key_create() { assert(0); }
#endif
#ifndef HAVE_PTHREAD_MUTEX_LOCK
void pthread_mutex_lock() { assert(0); }
#endif
#ifndef HAVE_PTHREAD_MUTEX_UNLOCK
void pthread_mutex_unlock() { assert(0); }
#endif
#ifndef HAVE_PTHREAD_SETSPECIFIC
void pthread_setspecific() { assert(0); }
#endif
#endif /* HAVE_NPTL */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment