[issue32390] AIX (xlc_r) compile error with Modules/posixmodule.c: Function argument assignment between types "unsigned long" and "struct fsid_t" is not allowed
David Edelsohn
report at bugs.python.org
Tue Jan 2 10:30:42 EST 2018
David Edelsohn <dje.gcc at gmail.com> added the comment:
/* typedef for the File System Identifier (fsid). This must correspond
* to the "struct fsid" structure in _ALL_SOURCE below.
*/
typedef struct fsid_t {
#ifdef __64BIT_KERNEL
unsigned long val[2];
#else /* __64BIT_KERNEL */
#ifdef _ALL_SOURCE
unsigned int val[2];
#else /* _ALL_SOURCE */
unsigned int __val[2];
#endif /* _ALL_SOURCE */
#endif /* __64BIT_KERNEL */
} fsid_t;
#ifdef _KERNEL
typedef struct fsid32_t {
unsigned int val[2];
} fsid32_t;
#endif /* __64BIT_KERNEL */
typedef struct fsid64_t {
#if defined(_ALL_SOURCE) && (defined(__64BIT__) || defined(_LONG_LONG))
uint64_t val[2];
#else /* _ALL_SOURCE */
uint32_t __val[4];
#endif /* _ALL_SOURCE */
} fsid64_t;
/* typedef for the File System Identifier (fsid) */
struct fsid {
#ifndef __64BIT_KERNEL
unsigned int val[2];
#else
unsigned long val[2];
#endif
};
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue32390>
_______________________________________
More information about the Python-bugs-list
mailing list