Index: webrtc/api/BUILD.gn |
diff --git a/webrtc/api/BUILD.gn b/webrtc/api/BUILD.gn |
index 8eeccb3a05cbf48e805d8f7213b3baf91c27c2ca..45fcd915081a8c61c67e0bf35d52c6b4eeb33704 100644 |
--- a/webrtc/api/BUILD.gn |
+++ b/webrtc/api/BUILD.gn |
@@ -262,7 +262,9 @@ if (rtc_include_tests) { |
"webrtcsession_unittest.cc", |
] |
- defines = [ "HAVE_SCTP" ] |
+ if (rtc_enable_sctp) { |
+ defines = [ "HAVE_SCTP" ] |
+ } |
configs += [ ":peerconnection_unittests_config" ] |