1 /* 2 * Copyright (C) 2018 The Android Open Source Project 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17 #ifndef BUILDTOOLS_LIBBACKTRACE_CONFIG_CONFIG_H_ 18 #define BUILDTOOLS_LIBBACKTRACE_CONFIG_CONFIG_H_ 19 20 #if defined(__i386__) || defined(__ARMEL__) 21 #define BACKTRACE_ELF_SIZE 32 22 #else 23 #define BACKTRACE_ELF_SIZE 64 24 #endif 25 26 #define BACKTRACE_XCOFF_SIZE unused 27 #define HAVE_ATOMIC_FUNCTIONS 1 28 #define HAVE_CLOCK_GETTIME 1 29 #define HAVE_DECL_STRNLEN 1 30 #define HAVE_DLFCN_H 1 31 #define HAVE_FCNTL 1 32 #define HAVE_INTTYPES_H 1 33 #define HAVE_LSTAT 1 34 #define HAVE_MEMORY_H 1 35 #define HAVE_READLINK 1 36 #define HAVE_STDINT_H 1 37 #define HAVE_STDLIB_H 1 38 #define HAVE_STRINGS_H 1 39 #define HAVE_STRING_H 1 40 #define HAVE_SYNC_FUNCTIONS 1 41 #define HAVE_SYS_MMAN_H 1 42 #define HAVE_SYS_STAT_H 1 43 #define HAVE_SYS_TYPES_H 1 44 #define HAVE_UNISTD_H 1 45 #define HAVE_LINK_H 1 46 #define STDC_HEADERS 1 47 #define HAVE_DL_ITERATE_PHDR 1 48 49 #ifndef _GNU_SOURCE 50 #define _GNU_SOURCE 1 51 #endif 52 53 #endif // BUILDTOOLS_LIBBACKTRACE_CONFIG_CONFIG_H_ 54