fixed undefined reference to strlcpy
This commit is contained in:
@@ -11,7 +11,7 @@ do_subst = $(SED) \
|
|||||||
|
|
||||||
BUILT_SOURCES = cmdline.h cmdline.c
|
BUILT_SOURCES = cmdline.h cmdline.c
|
||||||
|
|
||||||
EXTRA_DIST = npa-tool.ggo npa-tool.ggo.in opensc/src/libopensc/apdu.c opensc/src/libopensc/card.c
|
EXTRA_DIST = npa-tool.ggo npa-tool.ggo.in opensc/src/libopensc/apdu.c opensc/src/libopensc/card.c opensc/src/compat_strlcpy.c
|
||||||
EXTRA_DIST += $(shell find -L $(top_srcdir)/src/opensc/src -path '*/.git' -prune -o -type f -a -name '*.h' -print)
|
EXTRA_DIST += $(shell find -L $(top_srcdir)/src/opensc/src -path '*/.git' -prune -o -type f -a -name '*.h' -print)
|
||||||
MAINTAINERCLEANFILES = $(BUILT_SOURCES) npa-tool.ggo $(dist_man1_MANS)
|
MAINTAINERCLEANFILES = $(BUILT_SOURCES) npa-tool.ggo $(dist_man1_MANS)
|
||||||
|
|
||||||
|
|||||||
@@ -30,6 +30,7 @@
|
|||||||
#ifndef HAVE__SC_MATCH_ATR
|
#ifndef HAVE__SC_MATCH_ATR
|
||||||
/* I hate to do this, but to include _sc_match_atr we need to satisfy all
|
/* I hate to do this, but to include _sc_match_atr we need to satisfy all
|
||||||
* dependencies of card.c */
|
* dependencies of card.c */
|
||||||
|
#include "common/compat_strlcpy.c"
|
||||||
#include "common/libscdl.c"
|
#include "common/libscdl.c"
|
||||||
#include "libopensc/sc.c"
|
#include "libopensc/sc.c"
|
||||||
#include "libopensc/card.c"
|
#include "libopensc/card.c"
|
||||||
|
|||||||
Reference in New Issue
Block a user