projects
/
platform
/
core
/
connectivity
/
mtp-responder.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
758cfae
)
Check if linux header ver.4 for avoid redeclaration enum values
85/229585/2
submit/tizen/20200402.061644
author
Jihoon Jung
<jh8801.jung@samsung.com>
Thu, 2 Apr 2020 06:05:32 +0000
(15:05 +0900)
committer
Jihoon Jung
<jh8801.jung@samsung.com>
Thu, 2 Apr 2020 06:05:51 +0000
(15:05 +0900)
Change-Id: Ia1a4adf24002d95cfe0f836561737f3cf3c37aa2
Signed-off-by: Jihoon Jung <jh8801.jung@samsung.com>
include/transport/mtp_descs_strings.h
patch
|
blob
|
history
diff --git
a/include/transport/mtp_descs_strings.h
b/include/transport/mtp_descs_strings.h
index
9e340f5
..
45701f7
100644
(file)
--- a/
include/transport/mtp_descs_strings.h
+++ b/
include/transport/mtp_descs_strings.h
@@
-17,7
+17,9
@@
#include <linux/usb/ch9.h>
#include <linux/usb/functionfs.h>
#include <endian.h>
+#include <linux/version.h>
+#if (LINUX_VERSION_CODE >> 16) < 4
#ifndef FUNCTIONFS_DESCRIPTORS_MAGIC_V2
#define FUNCTIONFS_DESCRIPTORS_MAGIC_V2 3
enum functionfs_flags {
@@
-27,6
+29,7
@@
enum functionfs_flags {
FUNCTIONFS_HAS_MS_OS_DESC = 8,
};
#endif
+#endif
#if __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__
#define cpu_to_le16(x) (x)