4 /* hand-crafted config.h for Android builds */
7 #define HAVE_SYS_STAT_H
8 #define HAVE_GETTIMEOFDAY
10 #define __timespec_defined
22 #define HAVE_DECL_STRERROR_R 1
23 #define HAVE_DECL___FPENDING 0
25 #define SIZEOF_OFF_T 4
29 #define S_IREAD S_IRUSR
30 #define S_IWRITE S_IWUSR
31 #define S_IEXEC S_IXUSR
33 #ifdef HAVE_LITTLE_ENDIAN
34 #define WORDS_LITTLEENDIAN 1
36 #define WORDS_BIGENDIAN 1
42 #define _GL_UNUSED __attribute__((__unused__))
43 #define _GL_ATTRIBUTE_CONST __attribute__((__const__))
44 #define _GL_ATTRIBUTE_PURE __attribute__((__pure__))
45 #define restrict __restrict
46 #define _Noreturn __attribute__((__noreturn__))
47 #define PACKAGE_URL "http://www.gnu.org/software/parted/"
48 #define PACKAGE_STRING "GNU parted 3.1"
49 #define PACKAGE_NAME "GNU parted"
50 #define PACKAGE_BUGREPORT "bug-parted@gnu.org"
51 #define PACKAGE "parted"
52 #define VERSION "3.1-android"
54 #define PENDING_OUTPUT_N_BYTES fp->_p - fp->_bf._base
56 /* Missing from BIONIC, unfortunately */
57 static inline int mbtowc(wchar_t *pwc, const char *s, size_t n)
59 printf("mbtowc STUB!\n");
63 static inline int wctomb(char *s, wchar_t wc)
65 printf("wctomb STUB!\n");
70 #define stpcpy(a, b) my_stpcpy (a, b)
72 my_stpcpy (char *dest, const char *src)
76 do *d++ = *s; while (*s++ != '\0');
80 static inline int posix_memalign(void **memptr, size_t alignment, size_t size)
82 *memptr = memalign(alignment, size);
83 return *memptr == NULL;
85 #define llseek lseek64
86 #define getwd(buf) getcwd(buf, PATH_MAX)
90 #define SCSI_IOCTL_GET_IDLUN 0x5382