diff --git a/configure.ac b/configure.ac index 9b319f28..80ae2fe4 100644 --- a/configure.ac +++ b/configure.ac @@ -446,10 +446,13 @@ if test "${enable_dnie_ui}" = "yes"; then AC_DEFINE([ENABLE_DNIE_UI], [1], [Enable the use of external user interface program to request DNIe user pin]) case "${host}" in - *-*-darwin) - if test "${enable_dnie_ui}" = "yes"; then - LDFLAGS="${LDFLAGS} -framework Carbon" - fi + *-*-darwin*) + LDFLAGS="${LDFLAGS} -framework Carbon" + ;; + esac + case "${host}" in + *-apple-*) + LDFLAGS="${LDFLAGS} -framework CoreFoundation" ;; esac fi diff --git a/src/libopensc/card-dnie.c b/src/libopensc/card-dnie.c index 076d4415..d55920c6 100644 --- a/src/libopensc/card-dnie.c +++ b/src/libopensc/card-dnie.c @@ -163,6 +163,7 @@ const char *user_consent_message="Esta a punto de realizar una firma digital\nco */ char *user_consent_msgs[] = { "SETTITLE", "SETDESC", "CONFIRM", "BYE" }; +#ifdef linux /** * Do fgets() without interruptions. * @@ -181,6 +182,7 @@ static char *nointr_fgets(char *s, int size, FILE *stream) } return s; } +#endif /** * Ask for user consent.