Improve definition of EVENT__SIZEOF_OFF_T. am: 733141ef50 am: 7674b7f657 am: 7b01a7a229

Original change: https://android-review.googlesource.com/c/platform/external/libevent/+/2816754

Change-Id: Ie5dcff29b807e98b53c95aec6650e53f97ae7cb3
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
diff --git a/include/event2/event-config-bionic.h b/include/event2/event-config-bionic.h
index 29fa6da..041504f 100644
--- a/include/event2/event-config-bionic.h
+++ b/include/event2/event-config-bionic.h
@@ -474,7 +474,11 @@
 #define EVENT__SIZEOF_LONG_LONG 8
 
 /* The size of `off_t', as computed by sizeof. */
-#define EVENT__SIZEOF_OFF_T EVENT__SIZEOF_SIZE_T
+#if defined(__LP64__) || _FILE_OFFSET_BITS == 64
+#define EVENT__SIZEOF_OFF_T 8
+#else
+#define EVENT__SIZEOF_OFF_T 4
+#endif
 
 /* The size of `pthread_t', as computed by sizeof. */
 #define EVENT__SIZEOF_PTHREAD_T EVENT__SIZEOF_SIZE_T