Changeset e252d8c for lib


Ignore:
Timestamp:
2014-09-27T14:54:35Z (10 years ago)
Author:
dequis <dx@…>
Branches:
master
Children:
ebe2c5e, f329dfc
Parents:
d348377
Message:

RIP native win32 support (use cygwin instead)

It has been broken for a very long time and nobody cared about it.

Location:
lib
Files:
1 deleted
5 edited

Legend:

Unmodified
Added
Removed
  • lib/events.h

    rd348377 re252d8c  
    3737
    3838#include <sys/types.h>
    39 #ifndef _WIN32
    4039#include <sys/socket.h>
    4140#include <netdb.h>
    4241#include <netinet/in.h>
    43 #endif
    4442#include <glib.h>
    4543#include <gmodule.h>
  • lib/events_glib.c

    rd348377 re252d8c  
    3131#include <string.h>
    3232#include <sys/types.h>
    33 #ifndef _WIN32
    3433#include <sys/socket.h>
    3534#include <netdb.h>
     
    3736#include <arpa/inet.h>
    3837#include <unistd.h>
    39 #else
    40 #include "sock.h"
    41 #define ETIMEDOUT WSAETIMEDOUT
    42 #define EINPROGRESS WSAEINPROGRESS
    43 #endif
    4438#include <fcntl.h>
    4539#include <errno.h>
  • lib/misc.c

    rd348377 re252d8c  
    420420void random_bytes( unsigned char *buf, int count )
    421421{
    422 #ifndef _WIN32
    423422        static int use_dev = -1;
    424423       
     
    470469       
    471470        if( !use_dev )
    472 #endif
    473471        {
    474472                int i;
  • lib/proxy.c

    rd348377 re252d8c  
    2626#include <string.h>
    2727#include <sys/types.h>
    28 #ifndef _WIN32
    2928#include <sys/socket.h>
    3029#include <netdb.h>
     
    3231#include <arpa/inet.h>
    3332#include <unistd.h>
    34 #else
    35 #include "sock.h"
    36 #define ETIMEDOUT WSAETIMEDOUT
    37 #define EINPROGRESS WSAEINPROGRESS
    38 #endif
    3933#include <fcntl.h>
    4034#include <errno.h>
     
    7670        len = sizeof(error);
    7771       
    78 #ifndef _WIN32
    7972        if (getsockopt(source, SOL_SOCKET, SO_ERROR, &error, &len) < 0 || error) {
    8073                if ((phb->gai_cur = phb->gai_cur->ai_next)) {
     
    10194                return FALSE;
    10295        }
    103 #endif
    10496        freeaddrinfo(phb->gai);
    10597        sock_make_blocking(source);
  • lib/proxy.h

    rd348377 re252d8c  
    2828
    2929#include <sys/types.h>
    30 #ifndef _WIN32
    3130#include <sys/socket.h>
    3231#include <netdb.h>
    3332#include <netinet/in.h>
    34 #endif
    3533#include <glib.h>
    3634#include <gmodule.h>
Note: See TracChangeset for help on using the changeset viewer.