Make DTLS_ANTI_REPLAY depends on PROTO_DTLS
diff --git a/library/ssl_tls.c b/library/ssl_tls.c
index bd830e5..1a5cb01 100644
--- a/library/ssl_tls.c
+++ b/library/ssl_tls.c
@@ -2970,8 +2970,7 @@
     }
 #endif /* POLARSSL_ZLIB_SUPPORT */
 
-#if defined(POLARSSL_SSL_PROTO_DTLS) && \
-    defined(POLARSSL_SSL_DTLS_ANTI_REPLAY)
+#if defined(POLARSSL_SSL_DTLS_ANTI_REPLAY)
     if( ssl->transport == SSL_TRANSPORT_DATAGRAM )
     {
         ssl_dtls_replay_update( ssl );