From: Chih-Wei Huang Date: Thu, 6 Nov 2014 08:19:47 +0000 (+0800) Subject: parted: fix building issues on Android 5.0 X-Git-Tag: android-x86-6.0-r1~1 X-Git-Url: http://git.osdn.net/view?p=android-x86%2Fexternal-parted.git;a=commitdiff_plain;h=refs%2Fheads%2Flollipop-x86 parted: fix building issues on Android 5.0 Now bionic is more complete. Remove duplicate definitions. --- diff --git a/include/config.h b/include/config.h index e8e379b..ef5633d 100644 --- a/include/config.h +++ b/include/config.h @@ -54,34 +54,6 @@ #define PENDING_OUTPUT_N_BYTES fp->_p - fp->_bf._base /* Missing from BIONIC, unfortunately */ -static inline int mbtowc(wchar_t *pwc, const char *s, size_t n) -{ - printf("mbtowc STUB!\n"); - return -1; -} - -static inline int wctomb(char *s, wchar_t wc) -{ - printf("wctomb STUB!\n"); - return -1; -} - -#undef stpcpy -#define stpcpy(a, b) my_stpcpy (a, b) -static inline char * -my_stpcpy (char *dest, const char *src) -{ - char *d = dest; - const char *s = src; - do *d++ = *s; while (*s++ != '\0'); - return d - 1; -} - -static inline int posix_memalign(void **memptr, size_t alignment, size_t size) -{ - *memptr = memalign(alignment, size); - return *memptr == NULL; -} #define llseek lseek64 #define getwd(buf) getcwd(buf, PATH_MAX)