From: Kern Sibbald Date: Sat, 21 Jul 2007 18:32:04 +0000 (+0000) Subject: Eliminate one #ifdef Win32 in bsmtp X-Git-Tag: Release-7.0.0~5973 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=1059469ddba6cd0d0d932033e6be25c7fe32ea0f;p=bacula%2Fbacula Eliminate one #ifdef Win32 in bsmtp git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@5211 91ce42f0-d328-0410-95d8-f526ca767f89 --- diff --git a/bacula/src/tools/bsmtp.c b/bacula/src/tools/bsmtp.c index 49d8f13cdb..93eae1ba38 100644 --- a/bacula/src/tools/bsmtp.c +++ b/bacula/src/tools/bsmtp.c @@ -289,9 +289,6 @@ int main (int argc, char *argv[]) exit(1); } -#if defined(HAVE_WIN32) - _setmode(0, _O_BINARY); -#endif /* * Determine SMTP server @@ -307,6 +304,7 @@ int main (int argc, char *argv[]) #if defined(HAVE_WIN32) WSADATA wsaData; + _setmode(0, _O_BINARY); WSAStartup(MAKEWORD(2,2), &wsaData); #endif diff --git a/bacula/technotes-2.1 b/bacula/technotes-2.1 index 45925b4a8a..28828f7716 100644 --- a/bacula/technotes-2.1 +++ b/bacula/technotes-2.1 @@ -2,6 +2,7 @@ General: 21Jul07 +kes Eliminate one #ifdef Win32 in bsmtp kes Implement grow tool to grow a file for testing very large databases. kes Add big-vol-test to test Bacula seeking with > 5GB. Release 2.1.28 beta