Ticket #4863: obfsproxy-freebsd.diff

File obfsproxy-freebsd.diff, 768 bytes (added by wwaites, 8 years ago)
  • configure.ac

    diff --git a/configure.ac b/configure.ac
    index 3809750..3dd47f6 100644
    a b fi 
    2323
    2424PKG_PROG_PKG_CONFIG
    2525
     26### Headers ###
     27
     28AC_CHECK_HEADERS([sys/socket.h])
     29AC_CHECK_HEADERS([sys/types.h])
     30AC_CHECK_HEADERS([netinet/in.h])
     31
    2632### Libraries ###
    2733
    2834PKG_CHECK_MODULES([libevent], [libevent >= 2.0])
  • src/util.h

    diff --git a/src/util.h b/src/util.h
    index 8a7585b..1b4e7a9 100644
    a b  
    2525                         but it doesn't) */
    2626#endif
    2727
     28#ifdef HAVE_SYS_TYPES_H
     29#include <sys/types.h>
     30#endif
     31
     32#ifdef HAVE_SYS_SOCKET_H
     33#include <sys/socket.h>
     34#endif
     35
     36#ifdef HAVE_NETINET_IN_H
     37#include <netinet/in.h>
     38#endif
     39
    2840struct bufferevent;
    2941struct evbuffer;
    3042struct evconnlistener;