Просмотр исходного кода

Merge branch 'tor-github/pr/1213'

David Goulet 4 лет назад
Родитель
Сommit
a8e6eab379
1 измененных файлов с 2 добавлено и 0 удалено
  1. 2 0
      src/test/test_util.c

+ 2 - 0
src/test/test_util.c

@@ -5399,11 +5399,13 @@ test_util_socketpair(void *arg)
     tt_skip();
     tt_skip();
   }
   }
 #endif /* defined(__FreeBSD__) */
 #endif /* defined(__FreeBSD__) */
+#ifdef ENETUNREACH
   if (ersatz && socketpair_result == -ENETUNREACH) {
   if (ersatz && socketpair_result == -ENETUNREACH) {
     /* We can also fail with -ENETUNREACH if we have no network stack at
     /* We can also fail with -ENETUNREACH if we have no network stack at
      * all. */
      * all. */
     tt_skip();
     tt_skip();
   }
   }
+#endif
   tt_int_op(0, OP_EQ, socketpair_result);
   tt_int_op(0, OP_EQ, socketpair_result);
 
 
   tt_assert(SOCKET_OK(fds[0]));
   tt_assert(SOCKET_OK(fds[0]));