pkgsrc/security/pcsc-lite/patches/patch-src_utils.c
gdt 0989c0c515 pcsc-lite-1.8.12: Ludovic Rousseau
24 September 2014
- make hotplug using libudev (default) more robust
- add ReiserFS file system support (for configuration files)
- add musl libC support (increase the thread stack)
- Some other minor improvements and bug corrections
2014-10-01 16:27:03 +00:00

20 lines
625 B
C

$NetBSD: patch-src_utils.c,v 1.2 2014/10/01 16:27:03 gdt Exp $
Make sure libpscslite.so is not linked against -lpthread on NetBSD, as
loading libpthread.so through dlopen() is now forbidden.
--- src/utils.c.orig 2014-08-08 16:57:27.000000000 +0000
+++ src/utils.c
@@ -151,6 +151,7 @@ long int time_sub(struct timeval *a, str
return r.tv_sec * 1000000 + r.tv_usec;
} /* time_sub */
+#ifndef LIBPCSCLITE
int ThreadCreate(pthread_t * pthThread, int attributes,
PCSCLITE_THREAD_FUNCTION(pvFunction), LPVOID pvArg)
{
@@ -186,3 +187,4 @@ error:
pthread_attr_destroy(&attr);
return ret;
}
+#endif /* LIBPCSCLITE */