eventfd: Typedef eventfd_t to uint64_t on the supported platform
to compliant with Linux implementation as much as possible Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
parent
76a4ca01a3
commit
54e1c27e43
|
@ -42,7 +42,11 @@
|
||||||
|
|
||||||
/* Type for event counter */
|
/* Type for event counter */
|
||||||
|
|
||||||
|
#ifdef __INT64_DEFINED
|
||||||
|
typedef uint64_t eventfd_t;
|
||||||
|
#else
|
||||||
typedef uint32_t eventfd_t;
|
typedef uint32_t eventfd_t;
|
||||||
|
#endif
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Public Function Prototypes
|
* Public Function Prototypes
|
||||||
|
|
Loading…
Reference in New Issue