diff options
author | Nils Durner <durner@gnunet.org> | 2009-11-20 20:22:51 +0000 |
---|---|---|
committer | Nils Durner <durner@gnunet.org> | 2009-11-20 20:22:51 +0000 |
commit | ef9995ada40d9b45cbab1e528d529b66bd4a754e (patch) | |
tree | 1a435b32c70a8aebbe25bc7e62f416267b5f6850 /src/util/test_strings.c | |
parent | 512e1b2444a35a36740111655063a1d99dbc8c8d (diff) |
fix MinGW
Diffstat (limited to 'src/util/test_strings.c')
-rw-r--r-- | src/util/test_strings.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/util/test_strings.c b/src/util/test_strings.c index 107bb746c0..0c7c56bcdc 100644 --- a/src/util/test_strings.c +++ b/src/util/test_strings.c @@ -65,7 +65,13 @@ check () (GNUNET_TIME_UNIT_MILLISECONDS, 7 * 60 * 60 * 1000)); WANT (buf, b); - sprintf (buf, "%s%s", getenv ("HOME"), DIR_SEPARATOR_STR); + sprintf (buf, "%s%s", getenv ( +#ifndef MINGW + "HOME" +#else + "USERPROFILE" +#endif +) , DIR_SEPARATOR_STR); b = GNUNET_STRINGS_filename_expand ("~"); WANT (buf, b); GNUNET_STRINGS_buffer_fill (buf, sizeof (buf), 3, "a", "btx", "c"); |