pkgsrc-ng/security/pcsc-lite/patches/patch-src_utils.c
2013-09-26 17:14:40 +02:00

21 lines
667 B
C

$NetBSD: patch-src_utils.c,v 1.1 2012/12/14 23:50:36 pettai 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 2012-12-12 09:49:16.000000000 +0000
+++ src/utils.c
@@ -117,6 +117,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)
{
@@ -142,3 +143,4 @@ int ThreadCreate(pthread_t * pthThread,
ret = pthread_attr_destroy(&attr);
return ret;
}
+#endif /* LIBPCSCLITE */