Fix the virtfs-9p build failure on some windows environment and enable it.
The old-version MinGW's 'struct dirent' doesn't support 'd_type' member. This d_type has the information of the file type, but it's not mandatory. The other api can get the file type information. So d_type is to be always zero on windows.(zero means unknown type)
Change-Id: I1c657134bbc6188a7d6a9cfc2534664efe3ceea4
Signed-off-by: Sooyoung Ha <yoosah.ha@samsung.com>
#define major(x) 0
#define minor(x) 0
+/* Old MinGW's struct dirent doesn't support d_type member */
+#define WIN32_D_TYPE 0
+
extern uint64_t hostBytesPerSector;
#endif
dent->d_type, &name);
#else
d_offset = v9fs_co_telldir(pdu, fidp);
+#ifndef CONFIG_WIN32
len = pdu_marshal(pdu, 11 + count, "Qqbs",
&qid, d_offset,
dent->d_type, &name);
+#else
+ len = pdu_marshal(pdu, 11 + count, "Qqbs",
+ &qid, d_offset,
+ WIN32_D_TYPE, &name);
+#endif
#endif
if (len < 0) {
v9fs_co_seekdir(pdu, fidp, saved_dir_pos);
prepare
cd $SRCDIR/tizen
- ./emulator_configure.sh x86 -e --disable-virtfs -e "$BUILD_CFLAGS $BUILD_LDFLAGS"
+ ./emulator_configure.sh x86 -e "$BUILD_CFLAGS $BUILD_LDFLAGS"
make all_dibs
if [ $? -eq 0 ]
then