[Box Backup-dev] COMMIT r668 - box/chris/general/lib/win32

boxbackup-dev@fluffy.co.uk boxbackup-dev@fluffy.co.uk
Sat, 22 Jul 2006 23:21:03 +0000 (GMT)


Author: chris
Date: 2006-07-22 23:20:56 +0000 (Sat, 22 Jul 2006)
New Revision: 668

Modified:
   box/chris/general/lib/win32/emu.cpp
Log:
* emu.cpp
- Removed dependency on lib/common/Box.h (now that lib/common depends on
  lib/win32)


Modified: box/chris/general/lib/win32/emu.cpp
===================================================================
--- box/chris/general/lib/win32/emu.cpp	2006-07-22 23:20:01 UTC (rev 667)
+++ box/chris/general/lib/win32/emu.cpp	2006-07-22 23:20:56 UTC (rev 668)
@@ -3,7 +3,7 @@
 // Need at least 0x0500 to use GetFileSizeEx on Cygwin/MinGW
 #define WINVER 0x0500
 
-#include "Box.h"
+#include "emu.h"
 
 #ifdef WIN32
 
@@ -11,12 +11,10 @@
 #include <fcntl.h>
 #include <windows.h>
 
-#ifdef HAVE_UNISTD_H
+#ifdef __MINGW32__
 	#include <unistd.h>
 #endif
-#ifdef HAVE_PROCESS_H
-	#include <process.h>
-#endif
+#include <process.h>
 
 #include <string>
 #include <list>
@@ -806,7 +804,7 @@
 	_ui64toa(fi.dwVolumeSerialNumber, s->f_mntonname + 1, 16);
 
 	// pseudo unix mount point
-	s->f_mntonname[0] = DIRECTORY_SEPARATOR_ASCHAR;
+	s->f_mntonname[0] = '\\';
 
 	CloseHandle(handle);   // close the handle