Skip to content

Commit 860bbdc

Browse files
committed
Merge pull request #210 from shadowsocks/v2.0.2-int
Fix issues with MinGW
2 parents 18fc175 + c2d1911 commit 860bbdc

23 files changed

+158
-97
lines changed

Makefile.am

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
1-
if BUILD_WINCOMPAT
2-
SUBDIRS = libsodium libcork libipset libev src
3-
else
41
SUBDIRS = libsodium libcork libipset libudns libev src
5-
endif
62

73
ACLOCAL_AMFLAGS = -I m4
84
man_MANS = shadowsocks-libev.8

Makefile.in

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ AM_RECURSIVE_TARGETS = $(RECURSIVE_TARGETS:-recursive=) \
133133
distdir dist dist-all distcheck
134134
ETAGS = etags
135135
CTAGS = ctags
136-
DIST_SUBDIRS = libsodium libcork libipset libudns libev src
136+
DIST_SUBDIRS = $(SUBDIRS)
137137
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
138138
distdir = $(PACKAGE)-$(VERSION)
139139
top_distdir = $(distdir)
@@ -295,8 +295,7 @@ target_alias = @target_alias@
295295
top_build_prefix = @top_build_prefix@
296296
top_builddir = @top_builddir@
297297
top_srcdir = @top_srcdir@
298-
@BUILD_WINCOMPAT_FALSE@SUBDIRS = libsodium libcork libipset libudns libev src
299-
@BUILD_WINCOMPAT_TRUE@SUBDIRS = libsodium libcork libipset libev src
298+
SUBDIRS = libsodium libcork libipset libudns libev src
300299
ACLOCAL_AMFLAGS = -I m4
301300
man_MANS = shadowsocks-libev.8
302301
pkgconfiglibdir = $(libdir)/pkgconfig

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ It is a port of [shadowsocks](https://github.com/shadowsocks/shadowsocks)
1111
created by [@clowwindy](https://github.com/clowwindy) maintained by
1212
[@madeye](https://github.com/madeye) and [@linusyang](https://github.com/linusyang).
1313

14-
Current version: 2.0.1 | [![Build Status](https://travis-ci.org/shadowsocks/shadowsocks-libev.png?branch=master)](https://travis-ci.org/shadowsocks/shadowsocks-libev) | [Changelog](Changes)
14+
Current version: 2.0.2 | [![Build Status](https://travis-ci.org/shadowsocks/shadowsocks-libev.png?branch=master)](https://travis-ci.org/shadowsocks/shadowsocks-libev) | [Changelog](Changes)
1515

1616
Features
1717
--------

configure

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#! /bin/sh
22
# Guess values for system-dependent variables and create Makefiles.
3-
# Generated by GNU Autoconf 2.69 for shadowsocks-libev 2.0.1.
3+
# Generated by GNU Autoconf 2.69 for shadowsocks-libev 2.0.2.
44
#
55
# Report bugs to <[email protected]>.
66
#
@@ -590,8 +590,8 @@ MAKEFLAGS=
590590
# Identity of this package.
591591
PACKAGE_NAME='shadowsocks-libev'
592592
PACKAGE_TARNAME='shadowsocks-libev'
593-
PACKAGE_VERSION='2.0.1'
594-
PACKAGE_STRING='shadowsocks-libev 2.0.1'
593+
PACKAGE_VERSION='2.0.2'
594+
PACKAGE_STRING='shadowsocks-libev 2.0.2'
595595
PACKAGE_BUGREPORT='[email protected]'
596596
PACKAGE_URL=''
597597

@@ -1336,7 +1336,7 @@ if test "$ac_init_help" = "long"; then
13361336
# Omit some internal or obsolete options to make the list less imposing.
13371337
# This message is too long to be a string in the A/UX 3.1 sh.
13381338
cat <<_ACEOF
1339-
\`configure' configures shadowsocks-libev 2.0.1 to adapt to many kinds of systems.
1339+
\`configure' configures shadowsocks-libev 2.0.2 to adapt to many kinds of systems.
13401340

13411341
Usage: $0 [OPTION]... [VAR=VALUE]...
13421342

@@ -1407,7 +1407,7 @@ fi
14071407

14081408
if test -n "$ac_init_help"; then
14091409
case $ac_init_help in
1410-
short | recursive ) echo "Configuration of shadowsocks-libev 2.0.1:";;
1410+
short | recursive ) echo "Configuration of shadowsocks-libev 2.0.2:";;
14111411
esac
14121412
cat <<\_ACEOF
14131413

@@ -1528,7 +1528,7 @@ fi
15281528
test -n "$ac_init_help" && exit $ac_status
15291529
if $ac_init_version; then
15301530
cat <<\_ACEOF
1531-
shadowsocks-libev configure 2.0.1
1531+
shadowsocks-libev configure 2.0.2
15321532
generated by GNU Autoconf 2.69
15331533

15341534
Copyright (C) 2012 Free Software Foundation, Inc.
@@ -2051,7 +2051,7 @@ cat >config.log <<_ACEOF
20512051
This file contains any messages produced by compilers while
20522052
running configure, to aid debugging if configure makes a mistake.
20532053

2054-
It was created by shadowsocks-libev $as_me 2.0.1, which was
2054+
It was created by shadowsocks-libev $as_me 2.0.2, which was
20552055
generated by GNU Autoconf 2.69. Invocation command line was
20562056

20572057
$ $0 $@
@@ -2872,7 +2872,7 @@ fi
28722872

28732873
# Define the identity of the package.
28742874
PACKAGE='shadowsocks-libev'
2875-
VERSION='2.0.1'
2875+
VERSION='2.0.2'
28762876

28772877

28782878
cat >>confdefs.h <<_ACEOF
@@ -15636,7 +15636,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1563615636
# report actual input values of CONFIG_FILES etc. instead of their
1563715637
# values after options handling.
1563815638
ac_log="
15639-
This file was extended by shadowsocks-libev $as_me 2.0.1, which was
15639+
This file was extended by shadowsocks-libev $as_me 2.0.2, which was
1564015640
generated by GNU Autoconf 2.69. Invocation command line was
1564115641

1564215642
CONFIG_FILES = $CONFIG_FILES
@@ -15702,7 +15702,7 @@ _ACEOF
1570215702
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1570315703
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
1570415704
ac_cs_version="\\
15705-
shadowsocks-libev config.status 2.0.1
15705+
shadowsocks-libev config.status 2.0.2
1570615706
configured by $0, generated by GNU Autoconf 2.69,
1570715707
with options \\"\$ac_cs_config\\"
1570815708

configure.ac

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ dnl -*- Autoconf -*-
22
dnl Process this file with autoconf to produce a configure script.
33

44
AC_PREREQ([2.67])
5-
AC_INIT([shadowsocks-libev], [2.0.1], [[email protected]])
5+
AC_INIT([shadowsocks-libev], [2.0.2], [[email protected]])
66
AC_CONFIG_SRCDIR([src/encrypt.c])
77
AC_CONFIG_HEADERS([config.h])
88
AC_CONFIG_AUX_DIR(auto)

debian/changelog

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
shadowsocks-libev (2.0.2-1) unstable; urgency=low
2+
3+
* Fix issues with MinGW.
4+
5+
-- Max Lv <[email protected]> Sat, 10 Jan 2015 15:17:10 +0800
6+
17
shadowsocks-libev (2.0.1-1) unstable; urgency=low
28

39
* Implement a real asynchronous DNS resolver.

libudns/dnsget.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
#ifdef HAVE_CONFIG_H
2525
# include "config.h"
2626
#endif
27-
#ifdef WINDOWS
27+
#ifdef __MINGW32__
2828
#include <windows.h>
2929
#include <winsock2.h>
3030
#else
@@ -301,7 +301,7 @@ printrr(const struct dns_parse *p, struct dns_rr *rr) {
301301
if (verbose > 0) putchar('"');
302302
c = printtxt(c);
303303
if (verbose > 0) putchar('"');
304-
}
304+
}
305305
printf(" %s.", dns_dntosp(dn));
306306
break;
307307

libudns/inet_XtoX.c

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -46,12 +46,6 @@ struct in_addr;
4646
# undef inet_XtoX_no_ntop
4747
# undef inet_XtoX_no_pton
4848

49-
#else /* !TEST */
50-
51-
struct in_addr { /* declare it here to avoid messing with headers */
52-
unsigned char x[4];
53-
};
54-
5549
#endif /* TEST */
5650

5751
#endif /* inet_XtoX_prototypes */
@@ -60,7 +54,7 @@ struct in_addr { /* declare it here to avoid messing with headers */
6054
# define inet_XtoX_prefix inet_
6155
#endif
6256
#ifndef inet_XtoX_decl
63-
# define inet_XtoX_decl /*empty*/
57+
# define inet_XtoX_decl /* empty */
6458
#endif
6559

6660
#define cc2_(x,y) cc2__(x,y)
@@ -70,7 +64,7 @@ struct in_addr { /* declare it here to avoid messing with headers */
7064
#ifndef inet_XtoX_no_ntop
7165

7266
inet_XtoX_decl const char *
73-
fn(ntop)(int af, const void *src, char *dst, unsigned size);
67+
fn(ntop)(int af, const void *src, char *dst, int size);
7468

7569
#ifndef inet_XtoX_prototypes
7670

@@ -147,7 +141,7 @@ static int mjt_ntop6(const void *_src, char *dst, int size) {
147141
}
148142

149143
inet_XtoX_decl const char *
150-
fn(ntop)(int af, const void *src, char *dst, unsigned size) {
144+
fn(ntop)(int af, const void *src, char *dst, int size) {
151145
switch(af) {
152146
/* don't use AF_*: don't mess with headers */
153147
case 2: /* AF_INET */ if (mjt_ntop4(src, dst, size)) return dst; break;

libudns/rblcheck.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
#include <stdio.h>
2828
#include <stdlib.h>
2929
#include <string.h>
30-
#ifdef WINDOWS
30+
#ifdef __MINGW32__
3131
# include <winsock2.h>
3232
#else
3333
# include <unistd.h>

libudns/udns.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525

2626
#define UDNS_VERSION "0.4"
2727

28-
#ifdef WINDOWS
28+
#ifdef __MINGW32__
2929
# ifdef UDNS_DYNAMIC_LIBRARY
3030
# ifdef DNS_LIBRARY_BUILD
3131
# define UDNS_API __declspec(dllexport)

0 commit comments

Comments
 (0)