#ifdef WIN32
#include "win32_compat.h"
+#pragma comment(lib, "ws2_32.lib")
+WSADATA wsaData;
#else
#include <sys/stat.h>
#include <string.h>
off += count;
}
- printf("copied %d bytes\n", (int)count);
+ printf("copied %d bytes\n", (int)off);
free_file_context(src);
free_file_context(dst);