Ticket #169: 0001-Attempt-to-fix-ticket-169.patch

File 0001-Attempt-to-fix-ticket-169.patch, 1.2 KB (added by Samuli Seppänen, 12 years ago)

Partial fix to ticket #169

  • socket.c

    From d63df128200ffbf6ca255012f56c6fac8c7f49b1 Mon Sep 17 00:00:00 2001
    From: =?UTF-8?q?Samuli=20Sepp=C3=A4nen?= <samuli@openvpn.net>
    Date: Wed, 9 Nov 2011 03:55:31 -0800
    Subject: [PATCH] Attempt to fix ticket #169
    
    ---
     socket.c |    2 +-
     win32.h  |    3 ++-
     2 files changed, 3 insertions(+), 2 deletions(-)
    
    diff --git a/socket.c b/socket.c
    index 5302eca..b2a3f4e 100644
    a b link_socket_write_udp_posix_sendmsg (struct link_socket *sock, 
    30853085 * WSAAddressToString() and WSAStringToAddress() functions
    30863086 */
    30873087
    3088 #ifndef _MSC_VER
     3088#ifndef WINVER < 0x0600
    30893089const char *
    30903090inet_ntop(int af, const void *src, char *dst, socklen_t size)
    30913091{
  • win32.h

    diff --git a/win32.h b/win32.h
    index 5b18e3c..7682a6d 100644
    a b  
    2626#ifndef OPENVPN_WIN32_H
    2727#define OPENVPN_WIN32_H
    2828
     29#include "syshead.h"
    2930#include "mtu.h"
    3031
    3132/* location of executables */
    char *get_win_sys_path (void); 
    278279
    279280/* call self in a subprocess */
    280281void fork_to_self (const char *cmdline);
    281 #ifndef _MSC_VER
     282#ifndef WINVER < 0x0600
    282283const char *inet_ntop(int af, const void *src, char *dst, socklen_t size);
    283284int inet_pton(int af, const char *src, void *st);
    284285#endif