Douglas E. Engert wrote:
Here are changes to allow OpenSC to build under windows with the
new my_getopt and strlcpy changes.
win/Make.rules.mak
added /I$(TOPDIR)\src\common to get the my_getopts.h and strlcpy.h
netkey-tools,c, eidenv.c util.c
replaced #include <getopt.h> with #include <my_getopt.h>
removed the #ifdef for HAVE_GETOPT_H
my_getopt.h does the #ifdef HAVE_GETOPT_H and will
use #include <getopt.h> if needed.
pkcs11/Makefile.mak
added ..\common\common.lib as the _strlcpy is in common.lib
winconfig.h
removed #define HAVE_GETOPT_H so my_getopt would be used.
Changed verision number too, you may not want this part.
common/Makefile.mak
changed to use my_getopt.h and strlcpy.h and build strlcpy.obj
pkcs15-piv.c
added #include <internal.h> so as to pick up needed header files.
It compiles, using vc++8.0 also known as VC++2005. I am still having
maifiest problems but that is another issue.
patch applied. Please test a new snapshot.
Thanks,
Nils
_______________________________________________
opensc-devel mailing list
opensc-devel@lists.opensc-project.org
http://www.opensc-project.org/mailman/listinfo/opensc-devel