diff options
author | Werner Koch <[email protected]> | 2007-06-14 17:05:07 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2007-06-14 17:05:07 +0000 |
commit | 0cfbfd6186c7b28a355069ebb89b9739908318c6 (patch) | |
tree | a1e2990f266ca151fc47f06d41f40bca743eea76 /scd/scdaemon.c | |
parent | Syntax fix - should build now - however not tested. (diff) | |
download | gnupg-0cfbfd6186c7b28a355069ebb89b9739908318c6.tar.gz gnupg-0cfbfd6186c7b28a355069ebb89b9739908318c6.zip |
A whole bunch of changes to allow building for Windows.
See the ChangeLogs for details.
Diffstat (limited to '')
-rw-r--r-- | scd/scdaemon.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/scd/scdaemon.c b/scd/scdaemon.c index ea97a392c..4fe0918b6 100644 --- a/scd/scdaemon.c +++ b/scd/scdaemon.c @@ -303,8 +303,9 @@ main (int argc, char **argv ) when adding any stuff between here and the call to INIT_SECMEM() somewhere after the option parsing */ log_set_prefix ("scdaemon", 1|4); - /* Try to auto set the character set. */ - set_native_charset (NULL); + + /* Make sure that our subsystems are ready. */ + init_common_subsystems (); i18n_init (); @@ -522,6 +523,8 @@ main (int argc, char **argv ) log_debug ("... okay\n"); } + initialize_module_command (); + if (gpgconf_list == 2) scd_exit (0); if (gpgconf_list) @@ -586,6 +589,7 @@ main (int argc, char **argv ) pth_attr_t tattr; int fd = -1; +#ifndef HAVE_W32_SYSTEM { struct sigaction sa; @@ -594,6 +598,7 @@ main (int argc, char **argv ) sa.sa_flags = 0; sigaction (SIGPIPE, &sa, NULL); } +#endif /* If --debug-allow-core-dump has been given we also need to switch the working directory to a place where we can actually |