diff options
author | Christian Grothoff <christian@grothoff.org> | 2012-02-16 12:58:11 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2012-02-16 12:58:11 +0000 |
commit | 758f38a2171dadd20328c7db93164bbcd46b72dc (patch) | |
tree | bc157a97b3342e324c42ebb93cd4c3b06c6b9cfa /src/fs/gnunet-helper-fs-publish.c | |
parent | 3641ca940fad5f897733f2f83c3779ae2b2fc1d4 (diff) | |
download | gnunet-758f38a2171dadd20328c7db93164bbcd46b72dc.tar.gz gnunet-758f38a2171dadd20328c7db93164bbcd46b72dc.zip |
LRN: Use binary mode on W32 (lol -CG)
Diffstat (limited to 'src/fs/gnunet-helper-fs-publish.c')
-rw-r--r-- | src/fs/gnunet-helper-fs-publish.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/fs/gnunet-helper-fs-publish.c b/src/fs/gnunet-helper-fs-publish.c index 9594c19c2..d3008994f 100644 --- a/src/fs/gnunet-helper-fs-publish.c +++ b/src/fs/gnunet-helper-fs-publish.c | |||
@@ -401,6 +401,13 @@ int main(int argc, | |||
401 | const char *ex; | 401 | const char *ex; |
402 | struct ScanTreeNode *root; | 402 | struct ScanTreeNode *root; |
403 | 403 | ||
404 | #if WINDOWS | ||
405 | /* We're using stdout to communicate binary data back to the parent; use | ||
406 | * binary mode. | ||
407 | */ | ||
408 | _setmode (1, _O_BINARY); | ||
409 | #endif | ||
410 | |||
404 | /* parse command line */ | 411 | /* parse command line */ |
405 | if ( (argc != 3) && (argc != 2) ) | 412 | if ( (argc != 3) && (argc != 2) ) |
406 | { | 413 | { |