mirror of
https://github.com/Stichting-MINIX-Research-Foundation/pkgsrc-ng.git
synced 2025-08-04 02:08:49 -04:00
21 lines
625 B
C
21 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 */
|