xref: /aosp_15_r20/external/libevent/include/event2/event-config.h (revision 663afb9b963571284e0f0a60f257164ab54f64bf)
1*663afb9bSAndroid Build Coastguard Worker /* We include this to get __BIONIC__,
2*663afb9bSAndroid Build Coastguard Worker  * but this means _BSD_SOURCE and/or _GNU_SOURCE
3*663afb9bSAndroid Build Coastguard Worker  * must be set in the .bp file. */
4*663afb9bSAndroid Build Coastguard Worker #include <sys/cdefs.h>
5*663afb9bSAndroid Build Coastguard Worker 
6*663afb9bSAndroid Build Coastguard Worker #if defined(__BIONIC__)
7*663afb9bSAndroid Build Coastguard Worker #  include <event2/event-config-bionic.h>
8*663afb9bSAndroid Build Coastguard Worker #else
9*663afb9bSAndroid Build Coastguard Worker #  if defined(__linux__)
10*663afb9bSAndroid Build Coastguard Worker #    include <event2/event-config-linux.h>
11*663afb9bSAndroid Build Coastguard Worker #  elif defined(__APPLE__)
12*663afb9bSAndroid Build Coastguard Worker #    include <event2/event-config-darwin.h>
13*663afb9bSAndroid Build Coastguard Worker #  else
14*663afb9bSAndroid Build Coastguard Worker #    error No event-config.h suitable for this distribution.
15*663afb9bSAndroid Build Coastguard Worker #  endif
16*663afb9bSAndroid Build Coastguard Worker #endif  /* ifdef __BIONIC__ */
17