Hello,
The "strndup()" function is a Gnu extension which is not supported on
Solaris OS or standard C library.
To resolve a related compilation error, we made a small change to the
src/tools/pkcs11_setup.c file for the Solaris port.
Please accept the change, so that it will be more portable for the
future releases.
Attached is the patch file. Let me know if you have any comments.
Thanks,
Huie-Ying
Index: src/tools/pkcs11_setup.c
===================================================================
--- src/tools/pkcs11_setup.c (revision 325)
+++ src/tools/pkcs11_setup.c (working copy)
@@ -69,7 +69,8 @@
while (value != NULL) {
if ((next=strchr(value, ',')) != NULL) {
- lstitem = strndup(value, next-value);
+ lstitem = strdup(value);
+ lstitem[next-value]='\0';
next++;
}
else {
_______________________________________________
opensc-devel mailing list
[email protected]
http://www.opensc-project.org/mailman/listinfo/opensc-devel