fix building on raspbian wheezy

I need the attached patch to build tor raspbian wheezy with

deb-src http://deb.torproject.org/torproject.org wheezy main

--- /home/hein/emacs-backups/!home!hein!src!tor-0.2.9.8!src!test!test_util.c.1 2016-12-07 08:09:23.000000000 -0800 +++ src/test/test_util.c 2016-12-31 04:57:49.261173627 -0800 @@ -5074,7 +5074,8 @@

fd1 = tor_open_socket_with_extensions(domain, SOCK_STREAM, 0, 0, 0); int err = tor_socket_errno(fd1);

  • if (fd1 < 0 && err == SOCK_ERRNO(EPROTONOSUPPORT)) {
  • if (fd1 < 0 && (err == SOCK_ERRNO(EPROTONOSUPPORT) ||
  •              err == SOCK_ERRNO(EAFNOSUPPORT))) {
    /* Assume we're on an IPv4-only or IPv6-only system, and give up now. */ goto done; }

Trac:
Username: hein

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information