Make npth_setname_np actually work.
authorWerner Koch <wk@gnupg.org>
Thu, 10 May 2012 13:31:37 +0000 (15:31 +0200)
committerWerner Koch <wk@gnupg.org>
Thu, 10 May 2012 13:31:37 +0000 (15:31 +0200)
* src/npth.c (npth_setname_np): Fix typo in name and test macro.

src/npth.c

index 57cab15..5f5cb9b 100644 (file)
@@ -198,8 +198,8 @@ npth_getname_np (npth_t target_thread, char *buf, size_t buflen)
 int
 npth_setname_np (npth_t target_thread, const char *name)
 {
-#ifdef HAVE_PTHREAD_SERNAME_NP
-  return pthread_settname_np (target_thread, name);
+#ifdef HAVE_PTHREAD_SETNAME_NP
+  return pthread_setname_np (target_thread, name);
 #else
   (void)target_thread;
   (void)name;