summaryrefslogtreecommitdiffstats
path: root/media/mtp/MtpEventPacket.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'media/mtp/MtpEventPacket.cpp')
-rw-r--r--media/mtp/MtpEventPacket.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/media/mtp/MtpEventPacket.cpp b/media/mtp/MtpEventPacket.cpp
index 089278e..fc74542 100644
--- a/media/mtp/MtpEventPacket.cpp
+++ b/media/mtp/MtpEventPacket.cpp
@@ -21,7 +21,9 @@
#include <fcntl.h>
#include <sys/ioctl.h>
+#ifdef MTP_DEVICE
#include <linux/usb/f_mtp.h>
+#endif
#include "MtpEventPacket.h"