1 /* 2 * libwebsockets - small server side websockets and web server implementation 3 * 4 * Copyright (C) 2021-2022 Huawei Device Co., Ltd. 5 * 6 * Permission is hereby granted, free of charge, to any person obtaining a copy 7 * of this software and associated documentation files (the "Software"), to 8 * deal in the Software without restriction, including without limitation the 9 * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or 10 * sell copies of the Software, and to permit persons to whom the Software is 11 * furnished to do so, subject to the following conditions: 12 * 13 * The above copyright notice and this permission notice shall be included in 14 * all copies or substantial portions of the Software. 15 * 16 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 21 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS 22 * IN THE SOFTWARE. 23 */ 24 25 #if OHOS_LIBWEBSOCKETS 26 27 /* lws_config_private.h.in. Private compilation options. */ 28 29 #ifndef NDEBUG 30 #ifndef _DEBUG 31 #define _DEBUG 32 #endif 33 #endif 34 /* #undef LWIP_PROVIDE_ERRNO */ 35 36 /* Define to 1 to use CyaSSL as a replacement for OpenSSL. 37 * LWS_OPENSSL_SUPPORT needs to be set also for this to work. */ 38 /* #undef USE_CYASSL */ 39 40 /* Define to 1 if you have the `fork' function. */ 41 #define LWS_HAVE_FORK 42 43 /* Define to 1 if you have the `getenv' function. */ 44 #define LWS_HAVE_GETENV 45 46 /* Define to 1 if you have the <in6addr.h> header file. */ 47 /* #undef LWS_HAVE_IN6ADDR_H */ 48 49 /* Define to 1 if your system has a GNU libc compatible `malloc' function, and 50 to 0 otherwise. */ 51 #define LWS_HAVE_MALLOC 52 53 /* Define to 1 if you have the <memory.h> header file. */ 54 #define LWS_HAVE_MEMORY_H 55 56 /* Define to 1 if you have the <netinet/in.h> header file. */ 57 #define LWS_HAVE_NETINET_IN_H 58 59 /* Define to 1 if you have the <stdint.h> header file. */ 60 #define LWS_HAVE_STDINT_H 61 62 /* Define to 1 if you have the <stdlib.h> header file. */ 63 #define LWS_HAVE_STDLIB_H 64 65 /* Define to 1 if you have the `strerror' function. */ 66 #define LWS_HAVE_STRERROR 67 68 /* Define to 1 if you have the <strings.h> header file. */ 69 #define LWS_HAVE_STRINGS_H 70 71 /* Define to 1 if you have the <string.h> header file. */ 72 #define LWS_HAVE_STRING_H 73 74 /* Define to 1 if you have the <sys/prctl.h> header file. */ 75 #define LWS_HAVE_SYS_PRCTL_H 76 77 /* Define to 1 if you have the <sys/resource.h> header file. */ 78 #define LWS_HAVE_SYS_RESOURCE_H 79 80 /* Define to 1 if you have the <sys/socket.h> header file. */ 81 #define LWS_HAVE_SYS_SOCKET_H 82 83 /* Define to 1 if you have the <sys/sockio.h> header file. */ 84 /* #undef LWS_HAVE_SYS_SOCKIO_H */ 85 86 /* Define to 1 if you have the <sys/stat.h> header file. */ 87 #define LWS_HAVE_SYS_STAT_H 88 89 /* Define to 1 if you have the <sys/types.h> header file. */ 90 #define LWS_HAVE_SYS_TYPES_H 91 92 /* Define to 1 if you have the <unistd.h> header file. */ 93 #define LWS_HAVE_UNISTD_H 94 95 #define LWS_HAVE_TCP_USER_TIMEOUT 96 97 /* Define to 1 if you have the `vfork' function. */ 98 #define LWS_HAVE_VFORK 99 100 /* Define to 1 if you have the <vfork.h> header file. */ 101 /* #undef LWS_HAVE_VFORK_H */ 102 103 /* Define to 1 if `fork' works. */ 104 /* #undef LWS_HAVE_WORKING_FORK */ 105 106 /* Define to 1 if `vfork' works. */ 107 /* #undef LWS_HAVE_WORKING_VFORK */ 108 109 /* Define to 1 if execvpe() exists */ 110 #define LWS_HAVE_EXECVPE 111 112 /* Define to 1 if you have the <zlib.h> header file. */ 113 /* #undef LWS_HAVE_ZLIB_H */ 114 115 #define LWS_HAVE_GETLOADAVG 116 117 /* Define to the sub-directory in which libtool stores uninstalled libraries. 118 */ 119 #undef LT_OBJDIR // We're not using libtool 120 121 /* Define to rpl_malloc if the replacement function should be used. */ 122 /* #undef malloc */ 123 124 /* Define to rpl_realloc if the replacement function should be used. */ 125 /* #undef realloc */ 126 127 /* Define to 1 if we have getifaddrs */ 128 #define LWS_HAVE_GETIFADDRS 129 130 /* Define if the inline keyword doesn't exist. */ 131 /* #undef inline */ 132 133 /* #undef LWS_WITH_ZLIB */ 134 /* #undef LWS_HAS_PTHREAD_SETNAME_NP */ 135 136 /* Defined if you have the <inttypes.h> header file. */ 137 #define LWS_HAVE_INTTYPES_H 138 139 #else 140 141 /* lws_config_private.h.in. Private compilation options. */ 142 143 #ifndef NDEBUG 144 #ifndef _DEBUG 145 #define _DEBUG 146 #endif 147 #endif 148 149 /* Define to 1 to use CyaSSL as a replacement for OpenSSL. 150 * LWS_OPENSSL_SUPPORT needs to be set also for this to work. */ 151 /* #undef USE_CYASSL */ 152 153 /* Define to 1 if you have the <dlfcn.h> header file. */ 154 #define LWS_HAVE_DLFCN_H 155 156 /* Define to 1 if you have the <fcntl.h> header file. */ 157 #define LWS_HAVE_FCNTL_H 158 159 /* Define to 1 if you have the `fork' function. */ 160 #define LWS_HAVE_FORK 161 162 /* Define to 1 if you have the `getenv' function. */ 163 #define LWS_HAVE_GETENV 164 165 /* Define to 1 if you have the <in6addr.h> header file. */ 166 /* #undef LWS_HAVE_IN6ADDR_H */ 167 168 /* Define to 1 if your system has a GNU libc compatible `malloc' function, and 169 to 0 otherwise. */ 170 #define LWS_HAVE_MALLOC 171 172 /* Define to 1 if you have the <memory.h> header file. */ 173 #define LWS_HAVE_MEMORY_H 174 175 /* Define to 1 if you have the `memset' function. */ 176 #define LWS_HAVE_MEMSET 177 178 /* Define to 1 if you have the <netinet/in.h> header file. */ 179 #define LWS_HAVE_NETINET_IN_H 180 181 /* Define to 1 if your system has a GNU libc compatible `realloc' function, and 182 to 0 otherwise. */ 183 #define LWS_HAVE_REALLOC 184 185 /* Define to 1 if you have the `socket' function. */ 186 #define LWS_HAVE_SOCKET 187 188 /* Define to 1 if you have the <stdint.h> header file. */ 189 #define LWS_HAVE_STDINT_H 190 191 /* Define to 1 if you have the <stdlib.h> header file. */ 192 #define LWS_HAVE_STDLIB_H 193 194 /* Define to 1 if you have the `strerror' function. */ 195 #define LWS_HAVE_STRERROR 196 197 /* Define to 1 if you have the <strings.h> header file. */ 198 #define LWS_HAVE_STRINGS_H 199 200 /* Define to 1 if you have the <string.h> header file. */ 201 #define LWS_HAVE_STRING_H 202 203 /* Define to 1 if you have the <sys/prctl.h> header file. */ 204 /* #define LWS_HAVE_SYS_PRCTL_H */ 205 206 /* Define to 1 if you have the <sys/socket.h> header file. */ 207 #define LWS_HAVE_SYS_SOCKET_H 208 209 /* Define to 1 if you have the <sys/sockio.h> header file. */ 210 /* #undef LWS_HAVE_SYS_SOCKIO_H */ 211 212 /* Define to 1 if you have the <sys/stat.h> header file. */ 213 #define LWS_HAVE_SYS_STAT_H 214 215 /* Define to 1 if you have the <sys/types.h> header file. */ 216 #define LWS_HAVE_SYS_TYPES_H 217 218 /* Define to 1 if you have the <unistd.h> header file. */ 219 #define LWS_HAVE_UNISTD_H 220 221 #define LWS_HAVE_TCP_USER_TIMEOUT 222 223 /* Define to 1 if you have the `vfork' function. */ 224 #define LWS_HAVE_VFORK 225 226 /* Define to 1 if you have the <vfork.h> header file. */ 227 /* #undef LWS_HAVE_VFORK_H */ 228 229 /* Define to 1 if `fork' works. */ 230 #define LWS_HAVE_WORKING_FORK 231 232 /* Define to 1 if `vfork' works. */ 233 #define LWS_HAVE_WORKING_VFORK 234 235 /* Define to 1 if execvpe() exists */ 236 #define LWS_HAVE_EXECVPE 237 238 /* Define to 1 if you have the <zlib.h> header file. */ 239 /* #undef LWS_HAVE_ZLIB_H */ 240 241 #define LWS_HAVE_GETLOADAVG 242 243 /* Define to the sub-directory in which libtool stores uninstalled libraries. 244 */ 245 #undef LT_OBJDIR // We're not using libtool 246 247 /* Define to rpl_malloc if the replacement function should be used. */ 248 /* #undef malloc */ 249 250 /* Define to rpl_realloc if the replacement function should be used. */ 251 /* #undef realloc */ 252 253 /* Define to 1 if we have getifaddrs */ 254 #define LWS_HAVE_GETIFADDRS 255 256 /* Define if the inline keyword doesn't exist. */ 257 /* #undef inline */ 258 259 /* #undef LWS_WITH_ZLIB */ 260 #define LWS_HAS_PTHREAD_SETNAME_NP 261 262 /* Defined if you have the <inttypes.h> header file. */ 263 #define LWS_HAVE_INTTYPES_H 264 265 #endif