OSDN Git Service

parted: fix building issues on Android 6.0 marshmallow-x86 android-x86-6.0-r1 android-x86-6.0-r2 android-x86-6.0-r3
authorChih-Wei Huang <cwhuang@linux.org.tw>
Thu, 15 Oct 2015 16:34:51 +0000 (00:34 +0800)
committerChih-Wei Huang <cwhuang@linux.org.tw>
Fri, 16 Oct 2015 02:25:41 +0000 (10:25 +0800)
Android.mk
include/config.h
libparted/Android.mk
libparted/device.c

index 8338432..5053e7d 100644 (file)
@@ -1,2 +1 @@
 include $(call all-subdir-makefiles)
-
index ef5633d..3e70a24 100644 (file)
 #define HAVE_WCHAR_H
 #define HAVE_DECL_STRERROR_R 1
 #define HAVE_DECL___FPENDING 0
+#define HAVE_LONG_LONG_INT 1
 
+#ifdef __LP64__
+#define SIZEOF_OFF_T 8
+#else
 #define SIZEOF_OFF_T 4
-
-#define linux
+#endif
 
 #define S_IREAD     S_IRUSR
 #define S_IWRITE    S_IWUSR
index f9e0476..744eae4 100644 (file)
@@ -36,8 +36,6 @@ LOCAL_STATIC_LIBRARIES := libgnulib libparted-fs
 LOCAL_C_INCLUDES := $(LOCAL_PATH)/../include \
        $(LOCAL_PATH)/../lib \
        external/e2fsprogs/lib \
-       fs \
-       labels
 
 include $(BUILD_STATIC_LIBRARY)
 
index 738b320..9de766f 100644 (file)
@@ -154,7 +154,7 @@ ped_device_get (const char* path)
        PED_ASSERT (path != NULL);
        /* Don't canonicalize /dev/mapper paths, see tests/symlink.c */
        if (strncmp (path, "/dev/mapper/", 12))
-               normal_path = canonicalize_file_name (path);
+               normal_path = realpath(path, NULL);
        if (!normal_path)
                /* Well, maybe it is just that the file does not exist.
                 * Try it anyway.  */