|
| 1 | +/**************************************************************************** |
| 2 | + * apps/netutils/libcoap/coap_config.h |
| 3 | + * |
| 4 | + * Copyright (C) 2020 Carlos Gomes Martinho |
| 5 | + |
| 6 | + * Copyright (C) 2021-2023 Jon Shallow <[email protected]> |
| 7 | + * |
| 8 | + * SPDX-License-Identifier: BSD-2-Clause |
| 9 | + * |
| 10 | + * This file is part of the CoAP library libcoap. Please see README for terms |
| 11 | + * of use. |
| 12 | + ****************************************************************************/ |
| 13 | + |
| 14 | +#ifndef COAP_CONFIG_H_ |
| 15 | +#define COAP_CONFIG_H_ |
| 16 | + |
| 17 | +#if ! defined(_WIN32) |
| 18 | +#define _GNU_SOURCE |
| 19 | +#endif |
| 20 | + |
| 21 | +/* Define to 1 if you have <ws2tcpip.h> header file. */ |
| 22 | + |
| 23 | +/* #undef HAVE_WS2TCPIP_H */ |
| 24 | + |
| 25 | +/* Define to 1 if the system has small stack size. */ |
| 26 | + |
| 27 | +/* #undef COAP_CONSTRAINED_STACK */ |
| 28 | + |
| 29 | +/* Define to 1 if you have <winsock2.h> header file. */ |
| 30 | + |
| 31 | +/* #undef HAVE_WINSOCK2_H */ |
| 32 | + |
| 33 | +#ifdef CONFIG_LIBCOAP_EXAMPLE_CLIENT |
| 34 | +/* Define to 1 if the library has client support. */ |
| 35 | +#define COAP_CLIENT_SUPPORT 1 |
| 36 | + |
| 37 | +/* Define to 1 if the library has server support. */ |
| 38 | +#define COAP_SERVER_SUPPORT 1 |
| 39 | +#endif |
| 40 | + |
| 41 | +/* Define to 1 if the library is to have observe persistence. */ |
| 42 | +#define COAP_WITH_OBSERVE_PERSIST 1 |
| 43 | + |
| 44 | +/* Define to 1 if the system has epoll support. */ |
| 45 | + |
| 46 | +/* #undef COAP_EPOLL_SUPPORT */ |
| 47 | + |
| 48 | +/* Define to 1 if the library has OSCORE support. */ |
| 49 | +#define COAP_OSCORE_SUPPORT 1 |
| 50 | + |
| 51 | +/* Define to 1 if the library has WebSockets support. */ |
| 52 | + |
| 53 | +/* #undef COAP_WS_SUPPORT */ |
| 54 | + |
| 55 | +/* Define to 1 if the library has async separate response support. */ |
| 56 | +#define COAP_ASYNC_SUPPORT 1 |
| 57 | + |
| 58 | +/* Define to 0-8 for maximum logging level. */ |
| 59 | + |
| 60 | +/* #undef COAP_MAX_LOGGING_LEVEL */ |
| 61 | + |
| 62 | +/* Define to 1 to build without TCP support. */ |
| 63 | +#define COAP_DISABLE_TCP 0 |
| 64 | + |
| 65 | +#ifdef CONFIG_NET_IPv4 |
| 66 | +/* Define to 1 to build with IPv4 support. */ |
| 67 | +#define COAP_IPV4_SUPPORT 1 |
| 68 | +#endif |
| 69 | + |
| 70 | +#ifdef CONFIG_NET_IPv6 |
| 71 | +/* Define to 1 to build with IPv6 support. */ |
| 72 | +#define COAP_IPV6_SUPPORT 1 |
| 73 | +#endif |
| 74 | + |
| 75 | +/* Define to 1 to build with Unix socket support. */ |
| 76 | +#define COAP_AF_UNIX_SUPPORT 1 |
| 77 | + |
| 78 | +/* Define to 1 to build with Q-Block (RFC 9177) support. */ |
| 79 | +#define COAP_Q_BLOCK_SUPPORT 1 |
| 80 | + |
| 81 | +/* Define to 1 if you have the <arpa/inet.h> header file. */ |
| 82 | +#define HAVE_ARPA_INET_H 1 |
| 83 | + |
| 84 | +/* Define to 1 if you have the <assert.h> header file. */ |
| 85 | +#define HAVE_ASSERT_H 1 |
| 86 | + |
| 87 | +/* Define to 1 if you have the <dlfcn.h> header file. */ |
| 88 | + |
| 89 | +/* #undef HAVE_DLFCN_H */ |
| 90 | + |
| 91 | +/* Define to 1 if you have the `getaddrinfo' function. */ |
| 92 | +#define HAVE_GETADDRINFO 1 |
| 93 | + |
| 94 | +/* Define to 1 if you have the <inttypes.h> header file. */ |
| 95 | +#define HAVE_INTTYPES_H 1 |
| 96 | + |
| 97 | +/* Define to 1 if you have the <erno.h> header file. */ |
| 98 | +#define HAVE_ERRNO_H 1 |
| 99 | + |
| 100 | +/* Define to 1 if the system has openssl */ |
| 101 | + |
| 102 | +/* #undef COAP_WITH_LIBOPENSSL */ |
| 103 | + |
| 104 | +/* Define to 1 if the system has libgnutls28 */ |
| 105 | + |
| 106 | +/* #undef COAP_WITH_LIBGNUTLS */ |
| 107 | + |
| 108 | +/* Define to 1 if the system has libtinydtls */ |
| 109 | + |
| 110 | +/* #undef COAP_WITH_LIBTINYDTLS */ |
| 111 | + |
| 112 | +/* Define to 1 if the system has libmbedtls */ |
| 113 | +#define COAP_WITH_LIBMBEDTLS 1 |
| 114 | + |
| 115 | +/* Define to 1 if you have the <limits.h> header file. */ |
| 116 | +#define HAVE_LIMITS_H 1 |
| 117 | + |
| 118 | +/* Define to 1 if you have the `malloc' function. */ |
| 119 | +#define HAVE_MALLOC 1 |
| 120 | + |
| 121 | +/* Define to 1 if you have the <memory.h> header file. */ |
| 122 | +#define HAVE_MEMORY_H 1 |
| 123 | + |
| 124 | +/* Define to 1 if you have the `memset' function. */ |
| 125 | +#define HAVE_MEMSET 1 |
| 126 | + |
| 127 | +/* Define to 1 if you have the `if_nametoindex' function. */ |
| 128 | +#define HAVE_IF_NAMETOINDEX 1 |
| 129 | + |
| 130 | +/* Define to 1 if you have the <netdb.h> header file. */ |
| 131 | +#define HAVE_NETDB_H 1 |
| 132 | + |
| 133 | +/* Define to 1 if you have the <net/if.h> header file. */ |
| 134 | +#define HAVE_NET_IF_H 1 |
| 135 | + |
| 136 | +/* Define to 1 if you have the <netinet/in.h> header file. */ |
| 137 | +#define HAVE_NETINET_IN_H 1 |
| 138 | + |
| 139 | +/* Define to 1 if you have the <pthread.h> header file. */ |
| 140 | +#define HAVE_PTHREAD_H 1 |
| 141 | + |
| 142 | +/* Define to 1 if you have the `pthread_mutex_lock' function. */ |
| 143 | +#define HAVE_PTHREAD_MUTEX_LOCK 1 |
| 144 | + |
| 145 | +/* Define to 1 if you have the `select' function. */ |
| 146 | +#define HAVE_SELECT 1 |
| 147 | + |
| 148 | +/* Define to 1 if you have the `socket' function. */ |
| 149 | +#define HAVE_SOCKET 1 |
| 150 | + |
| 151 | +/* Define to 1 if you have the <stdint.h> header file. */ |
| 152 | +#define HAVE_STDINT_H 1 |
| 153 | + |
| 154 | +/* Define to 1 if you have the <stdlib.h> header file. */ |
| 155 | +#define HAVE_STDLIB_H 1 |
| 156 | + |
| 157 | +/* Define to 1 if you have the `strcasecmp' function. */ |
| 158 | +#define HAVE_STRCASECMP 1 |
| 159 | + |
| 160 | +/* Define to 1 if you have the <strings.h> header file. */ |
| 161 | +#define HAVE_STRINGS_H 1 |
| 162 | + |
| 163 | +/* Define to 1 if you have the <string.h> header file. */ |
| 164 | +#define HAVE_STRING_H 1 |
| 165 | + |
| 166 | +/* Define to 1 if you have the `strnlen' function. */ |
| 167 | +#define HAVE_STRNLEN 1 |
| 168 | + |
| 169 | +/* Define to 1 if you have the `strrchr' function. */ |
| 170 | +#define HAVE_STRRCHR 1 |
| 171 | + |
| 172 | +/* Define to 1 if you have the `getrandom' function. */ |
| 173 | +#define HAVE_GETRANDOM 1 |
| 174 | + |
| 175 | +/* Define to 1 if you have the `randon' function. */ |
| 176 | +#define HAVE_RANDOM 1 |
| 177 | + |
| 178 | +/* Define to 1 if the system has the type `struct cmsghdr'. */ |
| 179 | +#define HAVE_STRUCT_CMSGHDR 1 |
| 180 | + |
| 181 | +/* Define to 1 if you have the <sys/ioctl.h> header file. */ |
| 182 | +#define HAVE_SYS_IOCTL_H 1 |
| 183 | + |
| 184 | +/* Define to 1 if you have the <sys/socket.h> header file. */ |
| 185 | +#define HAVE_SYS_SOCKET_H 1 |
| 186 | + |
| 187 | +/* Define to 1 if you have the <sys/stat.h> header file. */ |
| 188 | +#define HAVE_SYS_STAT_H 1 |
| 189 | + |
| 190 | +/* Define to 1 if you have the <sys/time.h> header file. */ |
| 191 | +#define HAVE_SYS_TIME_H 1 |
| 192 | + |
| 193 | +/* Define to 1 if you have the <sys/types.h> header file. */ |
| 194 | +#define HAVE_SYS_TYPES_H 1 |
| 195 | + |
| 196 | +/* Define to 1 if you have the <sys/unistd.h> header file. */ |
| 197 | +#define HAVE_SYS_UNISTD_H 1 |
| 198 | + |
| 199 | +/* Define to 1 if you have the <time.h> header file. */ |
| 200 | +#define HAVE_TIME_H 1 |
| 201 | + |
| 202 | +/* Define to 1 if you have the <unistd.h> header file. */ |
| 203 | +#define HAVE_UNISTD_H 1 |
| 204 | + |
| 205 | +/* Define to the address where bug reports for this package should be sent. */ |
| 206 | +#define PACKAGE_BUGREPORT " [email protected]" |
| 207 | + |
| 208 | +/* Define to the full name of this package. */ |
| 209 | +#define PACKAGE_NAME "libcoap" |
| 210 | + |
| 211 | +/* Define to the full name and version of this package. */ |
| 212 | +#define PACKAGE_STRING "libcoap 4.3.4" |
| 213 | + |
| 214 | +/* Define to the one symbol short name of this package. */ |
| 215 | +#define PACKAGE_TARNAME "libcoap" |
| 216 | + |
| 217 | +/* Define to the home page for this package. */ |
| 218 | +#define PACKAGE_URL "https://libcoap.net/" |
| 219 | + |
| 220 | +/* Define to the version of this package. */ |
| 221 | +#define PACKAGE_VERSION "4.3.4" |
| 222 | + |
| 223 | +#if defined(_MSC_VER) && (_MSC_VER < 1900) && !defined(snprintf) |
| 224 | +#define snprintf _snprintf |
| 225 | +#endif |
| 226 | + |
| 227 | +#endif /* COAP_CONFIG_H_ */ |
0 commit comments