pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

swi-prolog-lite: Fix pthread_setname_np() arguments usage



Module Name:	pkgsrc-wip
Committed By:	Leonardo Taccari <leot%NetBSD.org@localhost>
Pushed By:	leot
Date:		Mon Dec 10 10:26:23 2018 +0100
Changeset:	e2c940e92177913501f3206c1c72ba43db548966

Modified Files:
	swi-prolog-lite/distinfo
	swi-prolog-lite/patches/patch-src_pl-thread.c

Log Message:
swi-prolog-lite: Fix pthread_setname_np() arguments usage

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=e2c940e92177913501f3206c1c72ba43db548966

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 swi-prolog-lite/distinfo                      | 2 +-
 swi-prolog-lite/patches/patch-src_pl-thread.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diffs:
diff --git a/swi-prolog-lite/distinfo b/swi-prolog-lite/distinfo
index 1c8590292e..a7ac05c4ec 100644
--- a/swi-prolog-lite/distinfo
+++ b/swi-prolog-lite/distinfo
@@ -10,4 +10,4 @@ SHA1 (patch-packages_clib_sha1_brg_endian.h) = e7bc21953cedafce67e0070b9ec326446
 SHA1 (patch-src_os_pl-files.c) = 222a9a4682808fc62e410b01f38e31c4dcc62f53
 SHA1 (patch-src_pl-funcs.h) = fd821e245ca49a42e595096d05a21ee20d25c41c
 SHA1 (patch-src_pl-rsort.c) = 233430c9ead3e1361f40ae541d0527408a141d6e
-SHA1 (patch-src_pl-thread.c) = 204e9afd776cbb3c9213ec41ac373b02b3fde8ac
+SHA1 (patch-src_pl-thread.c) = d45bb808e8fc80ab0766720415677328bd9bee1c
diff --git a/swi-prolog-lite/patches/patch-src_pl-thread.c b/swi-prolog-lite/patches/patch-src_pl-thread.c
index d722ddd098..e2378d5eee 100644
--- a/swi-prolog-lite/patches/patch-src_pl-thread.c
+++ b/swi-prolog-lite/patches/patch-src_pl-thread.c
@@ -9,7 +9,7 @@ Add support for NetBSD pthread_setname_np(3).
      return TRUE;
  #else
 +#if defined(__NetBSD__)
-+  if ( pthread_setname_np(pthread_self(), name, NULL) == 0 )
++  if ( pthread_setname_np(pthread_self(), "%s", (void *)name) == 0 )
 +    return TRUE;
 +#else
    if ( pthread_setname_np(pthread_self(), name) == 0 )


Home | Main Index | Thread Index | Old Index