aboutsummaryrefslogtreecommitdiffstats
path: root/devel/p5-PCSC-Card/files/patch-PCSCperl.h
blob: ce8e740f226359663fc9af1288d8a8509f6aeb62 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
--- PCSCperl.h.orig Tue May  6 22:23:26 2003
+++ PCSCperl.h  Mon Sep 29 03:06:21 2003
@@ -128,6 +128,16 @@
 
 #endif /* __APPLE__ */
 
+#ifdef __FreeBSD__
+#include <dlfcn.h>
+#include <wintypes.h>
+#include <pcsclite.h>
+#include <stdio.h>
+typedef void *DLL_HANDLE;
+#define LOAD_LIB() dlopen("libpcsclite.so.0", RTLD_LAZY)
+#define CLOSE_LIB(x)   dlclose(x)
+#define GET_FCT        dlsym
+#endif
 
 /* Definitine fuctions imported from the PCSC library and used by the stub */
 typedef LONG (WINAPI *TSCardEstablishContext) ( DWORD, LPCVOID, LPCVOID, LPSCARDCONTEXT );