summaryrefslogtreecommitdiff
path: root/libpthread/nptl/sysdeps/pthread/unwind-resume.c
diff options
context:
space:
mode:
authorAustin Foxley <austinf@cetoncorp.com>2010-02-16 12:27:18 -0800
committerAustin Foxley <austinf@cetoncorp.com>2010-02-16 12:27:18 -0800
commita032a6587011cbdac8c2f7e11f15dc4e592bbb55 (patch)
treeb8d8dfc6abf0168e098223c2134a3e4bd7640942 /libpthread/nptl/sysdeps/pthread/unwind-resume.c
parent70f1d42b13a741f603472f405299e5d2938aa728 (diff)
mass sync with glibc nptl
Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
Diffstat (limited to 'libpthread/nptl/sysdeps/pthread/unwind-resume.c')
-rw-r--r--libpthread/nptl/sysdeps/pthread/unwind-resume.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/libpthread/nptl/sysdeps/pthread/unwind-resume.c b/libpthread/nptl/sysdeps/pthread/unwind-resume.c
index 018d2fd2f..3ca2fd8fc 100644
--- a/libpthread/nptl/sysdeps/pthread/unwind-resume.c
+++ b/libpthread/nptl/sysdeps/pthread/unwind-resume.c
@@ -21,6 +21,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <unwind.h>
+#include <libgcc_s.h>
static void (*libgcc_s_resume) (struct _Unwind_Exception *exc);
static _Unwind_Reason_Code (*libgcc_s_personality)
@@ -33,17 +34,16 @@ void abort(void);
static void
init (void)
{
- void *resume = NULL;
- void *personality = NULL;
+ void *resume, *personality;
void *handle;
- resume = personality = NULL; /* make gcc silent */
- handle = dlopen ("libgcc_s.so.1", (RTLD_LOCAL | RTLD_LAZY));
+ resume = personality = NULL;
+ handle = dlopen (LIBGCC_S_SO, (RTLD_LOCAL | RTLD_LAZY));
if (handle == NULL
|| (resume = dlsym (handle, "_Unwind_Resume")) == NULL
|| (personality = dlsym (handle, "__gcc_personality_v0")) == NULL)
{
- printf("libgcc_s.so.1 must be installed for pthread_cancel to work\n");
+ printf (LIBGCC_S_SO " must be installed for pthread_cancel to work\n");
abort();
}