Browse Source

* More fixes!

dvh-chacham15-master
Colin Leroy 9 years ago
parent
commit
739cbb7b5d
2 changed files with 6 additions and 0 deletions
  1. +1
    -0
      src/windows/win_etpan.h
  2. +5
    -0
      tests/mime-create.c

+ 1
- 0
src/windows/win_etpan.h View File

@ -17,6 +17,7 @@
#endif
#ifdef WIN32
#define _WIN32_WINNT 0x0501
#include <winsock2.h>
#include <ws2tcpip.h>
#define EINPROGRESS WSAEINPROGRESS


+ 5
- 0
tests/mime-create.c View File

@ -260,9 +260,14 @@ static char * generate_boundary(const char * boundary_prefix)
long value;
now = time(NULL);
#ifndef WIN32
value = random();
gethostname(name, MAX_MESSAGE_ID);
#else
value = now;
strcpy(name, "WINDOWS");
#endif
if (boundary_prefix == NULL)
boundary_prefix = "";


Loading…
Cancel
Save