1 diff --git a/std/socket.d b/std/socket.d
2 index 111cd17..6d23da9 100644
5 @@ -448,7 +448,7 @@ class Protocol
6 // Skip this test on Android because getprotobyname/number are
7 // unimplemented in bionic.
8 version(CRuntime_Bionic) {} else
10 +@safe version(hasNetwork) unittest
12 // import std.stdio : writefln;
14 @@ -770,7 +770,7 @@ class InternetHost
19 +@safe version(hasNetwork) unittest
21 InternetHost ih = new InternetHost;