diff --git a/std/socket.d b/std/socket.d index 78732710342..c1c5a33154e 100644 --- a/std/socket.d +++ b/std/socket.d @@ -3098,7 +3098,7 @@ public: * Returns: The number of bytes actually received, `0` if the remote side * has closed the connection, or `Socket.ERROR` on failure. */ - ptrdiff_t receive(void[] buf, SocketFlags flags) @trusted + ptrdiff_t receive(void[] buf, SocketFlags flags) @trusted @nogc { version (Windows) // Does not use size_t { @@ -3115,7 +3115,7 @@ public: } /// ditto - ptrdiff_t receive(void[] buf) + ptrdiff_t receive(void[] buf) @nogc { return receive(buf, SocketFlags.NONE); }