mirror of
git://git.gnupg.org/gnupg.git
synced 2025-04-17 15:44:34 +02:00
Make it build on W32 again.
This commit is contained in:
parent
c8bafe218c
commit
20a24312b0
@ -1,3 +1,14 @@
|
|||||||
|
2010-06-28 Werner Koch <wk@g10code.com>
|
||||||
|
|
||||||
|
* dirmngr_ldap.c (my_i18n_init): Remove.
|
||||||
|
(main): Call i18n_init instead of above function.
|
||||||
|
|
||||||
|
* dirmngr-client.c (my_i18n_init): Remove.
|
||||||
|
(main): Call i18n_init instead of above function.
|
||||||
|
|
||||||
|
* Makefile.am (dirmngr_LDADD): Add ../gl/libgnu.
|
||||||
|
(dirmngr_ldap_LDADD, dirmngr_client_LDADD): Ditto.
|
||||||
|
|
||||||
2010-06-09 Werner Koch <wk@g10code.com>
|
2010-06-09 Werner Koch <wk@g10code.com>
|
||||||
|
|
||||||
* i18n.h: Remove.
|
* i18n.h: Remove.
|
||||||
|
@ -41,7 +41,7 @@ dirmngr_SOURCES = dirmngr.c dirmngr.h server.c crlcache.c crlfetch.c \
|
|||||||
b64dec.c cdb.h cdblib.c ldap.c http.c http.h misc.c \
|
b64dec.c cdb.h cdblib.c ldap.c http.c http.h misc.c \
|
||||||
ocsp.c ocsp.h validate.c validate.h
|
ocsp.c ocsp.h validate.c validate.h
|
||||||
|
|
||||||
dirmngr_LDADD = $(libcommonpth) $(DNSLIBS) $(LIBASSUAN_LIBS) \
|
dirmngr_LDADD = $(libcommonpth) ../gl/libgnu.a $(DNSLIBS) $(LIBASSUAN_LIBS) \
|
||||||
$(LIBGCRYPT_LIBS) $(KSBA_LIBS) $(PTH_LIBS) $(LIBINTL) $(LIBICONV)
|
$(LIBGCRYPT_LIBS) $(KSBA_LIBS) $(PTH_LIBS) $(LIBINTL) $(LIBICONV)
|
||||||
|
|
||||||
if HAVE_W32_SYSTEM
|
if HAVE_W32_SYSTEM
|
||||||
@ -53,11 +53,11 @@ endif
|
|||||||
dirmngr_ldap_SOURCES = dirmngr_ldap.c $(ldap_url) no-libgcrypt.c
|
dirmngr_ldap_SOURCES = dirmngr_ldap.c $(ldap_url) no-libgcrypt.c
|
||||||
dirmngr_ldap_CFLAGS = $(GPG_ERROR_CFLAGS)
|
dirmngr_ldap_CFLAGS = $(GPG_ERROR_CFLAGS)
|
||||||
dirmngr_ldap_LDFLAGS =
|
dirmngr_ldap_LDFLAGS =
|
||||||
dirmngr_ldap_LDADD = $(libcommon) $(DNSLIBS) \
|
dirmngr_ldap_LDADD = $(libcommon) ../gl/libgnu.a $(DNSLIBS) \
|
||||||
$(GPG_ERROR_LIBS) $(LDAPLIBS) $(LIBINTL) $(LIBICONV)
|
$(GPG_ERROR_LIBS) $(LDAPLIBS) $(LIBINTL) $(LIBICONV)
|
||||||
|
|
||||||
dirmngr_client_SOURCES = dirmngr-client.c b64enc.c no-libgcrypt.c
|
dirmngr_client_SOURCES = dirmngr-client.c b64enc.c no-libgcrypt.c
|
||||||
dirmngr_client_LDADD = $(libcommon) $(LIBASSUAN_LIBS) \
|
dirmngr_client_LDADD = $(libcommon) ../gl/libgnu.a $(LIBASSUAN_LIBS) \
|
||||||
$(GPG_ERROR_LIBS) $(LIBINTL) $(LIBICONV)
|
$(GPG_ERROR_LIBS) $(LIBINTL) $(LIBICONV)
|
||||||
|
|
||||||
|
|
||||||
|
@ -164,21 +164,6 @@ my_strusage (int level)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
static void
|
|
||||||
my_i18n_init (void)
|
|
||||||
{
|
|
||||||
#warning Better use common init functions
|
|
||||||
#ifdef USE_SIMPLE_GETTEXT
|
|
||||||
set_gettext_file (PACKAGE);
|
|
||||||
#else
|
|
||||||
# ifdef ENABLE_NLS
|
|
||||||
setlocale (LC_ALL, "" );
|
|
||||||
bindtextdomain (PACKAGE, LOCALEDIR);
|
|
||||||
textdomain (PACKAGE);
|
|
||||||
# endif
|
|
||||||
#endif
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
int
|
int
|
||||||
main (int argc, char **argv )
|
main (int argc, char **argv )
|
||||||
@ -214,7 +199,7 @@ main (int argc, char **argv )
|
|||||||
assuan_set_gpg_err_source (GPG_ERR_SOURCE_DEFAULT);
|
assuan_set_gpg_err_source (GPG_ERR_SOURCE_DEFAULT);
|
||||||
|
|
||||||
/* Setup I18N. */
|
/* Setup I18N. */
|
||||||
my_i18n_init();
|
i18n_init();
|
||||||
|
|
||||||
/* Parse the command line. */
|
/* Parse the command line. */
|
||||||
pargs.argc = &argc;
|
pargs.argc = &argc;
|
||||||
|
@ -161,22 +161,6 @@ my_strusage (int level)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
static void
|
|
||||||
my_i18n_init (void)
|
|
||||||
{
|
|
||||||
#warning Better use common init functions
|
|
||||||
#ifdef USE_SIMPLE_GETTEXT
|
|
||||||
set_gettext_file (PACKAGE);
|
|
||||||
#else
|
|
||||||
# ifdef ENABLE_NLS
|
|
||||||
setlocale (LC_ALL, "" );
|
|
||||||
bindtextdomain (PACKAGE, LOCALEDIR);
|
|
||||||
textdomain (PACKAGE);
|
|
||||||
# endif
|
|
||||||
#endif
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
int
|
int
|
||||||
main (int argc, char **argv )
|
main (int argc, char **argv )
|
||||||
{
|
{
|
||||||
@ -194,7 +178,7 @@ main (int argc, char **argv )
|
|||||||
log_set_prefix ("dirmngr_ldap", JNLIB_LOG_WITH_PREFIX);
|
log_set_prefix ("dirmngr_ldap", JNLIB_LOG_WITH_PREFIX);
|
||||||
|
|
||||||
/* Setup I18N. */
|
/* Setup I18N. */
|
||||||
my_i18n_init();
|
i18n_init();
|
||||||
|
|
||||||
/* LDAP defaults */
|
/* LDAP defaults */
|
||||||
opt.timeout.tv_sec = DEFAULT_LDAP_TIMEOUT;
|
opt.timeout.tv_sec = DEFAULT_LDAP_TIMEOUT;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user