Index: media/midi/BUILD.gn |
diff --git a/media/midi/BUILD.gn b/media/midi/BUILD.gn |
index f056aed059b0a57778a7ba3f715c2dbb8f31bf59..bbf0a149ab3e60c4964fe7ab06b0e06e9dc81183 100644 |
--- a/media/midi/BUILD.gn |
+++ b/media/midi/BUILD.gn |
@@ -15,7 +15,7 @@ if (is_android) { |
# Common configuration for targets in the media/midi directory. |
config("midi_config") { |
- if (use_alsa) { |
+ if (use_alsa && use_udev) { |
defines = [ |
"USE_ALSA", |
"USE_UDEV", |