summaryrefslogtreecommitdiffstats
path: root/g10/openfile.c
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2007-06-14 19:05:07 +0200
committerWerner Koch <wk@gnupg.org>2007-06-14 19:05:07 +0200
commit0cfbfd6186c7b28a355069ebb89b9739908318c6 (patch)
treea1e2990f266ca151fc47f06d41f40bca743eea76 /g10/openfile.c
parentSyntax fix - should build now - however not tested. (diff)
downloadgnupg2-0cfbfd6186c7b28a355069ebb89b9739908318c6.tar.xz
gnupg2-0cfbfd6186c7b28a355069ebb89b9739908318c6.zip
A whole bunch of changes to allow building for Windows.
See the ChangeLogs for details.
Diffstat (limited to 'g10/openfile.c')
-rw-r--r--g10/openfile.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/g10/openfile.c b/g10/openfile.c
index 008752fb8..095aad9f4 100644
--- a/g10/openfile.c
+++ b/g10/openfile.c
@@ -330,7 +330,7 @@ open_sigfile( const char *iname, progress_filter_context_t *pfx )
static void
copy_options_file( const char *destdir )
{
- const char *datadir = GNUPG_DATADIR;
+ const char *datadir = gnupg_datadir ();
char *fname;
FILE *src, *dst;
int linefeeds=0;
@@ -407,6 +407,9 @@ void
try_make_homedir( const char *fname )
{
const char *defhome = GNUPG_DEFAULT_HOMEDIR;
+#ifdef HAVE_W32_SYSTEM
+#warning use a function and not a constant
+#endif
/* Create the directory only if the supplied directory name
* is the same as the default one. This way we avoid to create