Android-x86
Fork
Faire un don

  • R/O
  • HTTP
  • SSH
  • HTTPS

external-parted: Commit

external/parted


Commit MetaInfo

Révision64886b2cf7b31ad66036859246301ecf700549fa (tree)
l'heure2014-11-06 17:19:47
AuteurChih-Wei Huang <cw_huang@asus...>
CommiterChih-Wei Huang

Message de Log

parted: fix building issues on Android 5.0

Now bionic is more complete. Remove duplicate definitions.

Change Summary

Modification

--- a/include/config.h
+++ b/include/config.h
@@ -54,34 +54,6 @@
5454 #define PENDING_OUTPUT_N_BYTES fp->_p - fp->_bf._base
5555
5656 /* Missing from BIONIC, unfortunately */
57-static inline int mbtowc(wchar_t *pwc, const char *s, size_t n)
58-{
59- printf("mbtowc STUB!\n");
60- return -1;
61-}
62-
63-static inline int wctomb(char *s, wchar_t wc)
64-{
65- printf("wctomb STUB!\n");
66- return -1;
67-}
68-
69-#undef stpcpy
70-#define stpcpy(a, b) my_stpcpy (a, b)
71-static inline char *
72-my_stpcpy (char *dest, const char *src)
73-{
74- char *d = dest;
75- const char *s = src;
76- do *d++ = *s; while (*s++ != '\0');
77- return d - 1;
78-}
79-
80-static inline int posix_memalign(void **memptr, size_t alignment, size_t size)
81-{
82- *memptr = memalign(alignment, size);
83- return *memptr == NULL;
84-}
8557 #define llseek lseek64
8658 #define getwd(buf) getcwd(buf, PATH_MAX)
8759
Afficher sur ancien navigateur de dépôt.