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#if !defined (CROSS_PLATFORM_IOS_LIBWEBSOCKETS) 75/* Define to 1 if you have the <sys/prctl.h> header file. */ 76#define LWS_HAVE_SYS_PRCTL_H 77#endif 78 79/* Define to 1 if you have the <sys/resource.h> header file. */ 80#define LWS_HAVE_SYS_RESOURCE_H 81 82/* Define to 1 if you have the <sys/socket.h> header file. */ 83#define LWS_HAVE_SYS_SOCKET_H 84 85/* Define to 1 if you have the <sys/sockio.h> header file. */ 86/* #undef LWS_HAVE_SYS_SOCKIO_H */ 87 88/* Define to 1 if you have the <sys/stat.h> header file. */ 89#define LWS_HAVE_SYS_STAT_H 90 91/* Define to 1 if you have the <sys/types.h> header file. */ 92#define LWS_HAVE_SYS_TYPES_H 93 94/* Define to 1 if you have the <unistd.h> header file. */ 95#define LWS_HAVE_UNISTD_H 96 97#define LWS_HAVE_TCP_USER_TIMEOUT 98 99/* Define to 1 if you have the `vfork' function. */ 100#define LWS_HAVE_VFORK 101 102/* Define to 1 if you have the <vfork.h> header file. */ 103/* #undef LWS_HAVE_VFORK_H */ 104 105/* Define to 1 if `fork' works. */ 106/* #undef LWS_HAVE_WORKING_FORK */ 107 108/* Define to 1 if `vfork' works. */ 109/* #undef LWS_HAVE_WORKING_VFORK */ 110 111/* Define to 1 if execvpe() exists */ 112#define LWS_HAVE_EXECVPE 113 114/* Define to 1 if you have the <zlib.h> header file. */ 115/* #undef LWS_HAVE_ZLIB_H */ 116 117#define LWS_HAVE_GETLOADAVG 118 119/* Define to the sub-directory in which libtool stores uninstalled libraries. 120 */ 121#undef LT_OBJDIR // We're not using libtool 122 123/* Define to rpl_malloc if the replacement function should be used. */ 124/* #undef malloc */ 125 126/* Define to rpl_realloc if the replacement function should be used. */ 127/* #undef realloc */ 128 129/* Define to 1 if we have getifaddrs */ 130#define LWS_HAVE_GETIFADDRS 131 132/* Define if the inline keyword doesn't exist. */ 133/* #undef inline */ 134 135/* #undef LWS_WITH_ZLIB */ 136/* #undef LWS_HAS_PTHREAD_SETNAME_NP */ 137 138/* Defined if you have the <inttypes.h> header file. */ 139#define LWS_HAVE_INTTYPES_H 140 141#else 142 143/* lws_config_private.h.in. Private compilation options. */ 144 145#ifndef NDEBUG 146 #ifndef _DEBUG 147 #define _DEBUG 148 #endif 149#endif 150 151/* Define to 1 to use CyaSSL as a replacement for OpenSSL. 152 * LWS_OPENSSL_SUPPORT needs to be set also for this to work. */ 153/* #undef USE_CYASSL */ 154 155/* Define to 1 if you have the <dlfcn.h> header file. */ 156#define LWS_HAVE_DLFCN_H 157 158/* Define to 1 if you have the <fcntl.h> header file. */ 159#define LWS_HAVE_FCNTL_H 160 161/* Define to 1 if you have the `fork' function. */ 162#define LWS_HAVE_FORK 163 164/* Define to 1 if you have the `getenv' function. */ 165#define LWS_HAVE_GETENV 166 167/* Define to 1 if you have the <in6addr.h> header file. */ 168/* #undef LWS_HAVE_IN6ADDR_H */ 169 170/* Define to 1 if your system has a GNU libc compatible `malloc' function, and 171 to 0 otherwise. */ 172#define LWS_HAVE_MALLOC 173 174/* Define to 1 if you have the <memory.h> header file. */ 175#define LWS_HAVE_MEMORY_H 176 177/* Define to 1 if you have the `memset' function. */ 178#define LWS_HAVE_MEMSET 179 180/* Define to 1 if you have the <netinet/in.h> header file. */ 181#define LWS_HAVE_NETINET_IN_H 182 183/* Define to 1 if your system has a GNU libc compatible `realloc' function, and 184 to 0 otherwise. */ 185#define LWS_HAVE_REALLOC 186 187/* Define to 1 if you have the `socket' function. */ 188#define LWS_HAVE_SOCKET 189 190/* Define to 1 if you have the <stdint.h> header file. */ 191#define LWS_HAVE_STDINT_H 192 193/* Define to 1 if you have the <stdlib.h> header file. */ 194#define LWS_HAVE_STDLIB_H 195 196/* Define to 1 if you have the `strerror' function. */ 197#define LWS_HAVE_STRERROR 198 199/* Define to 1 if you have the <strings.h> header file. */ 200#define LWS_HAVE_STRINGS_H 201 202/* Define to 1 if you have the <string.h> header file. */ 203#define LWS_HAVE_STRING_H 204 205/* Define to 1 if you have the <sys/prctl.h> header file. */ 206/* #define LWS_HAVE_SYS_PRCTL_H */ 207 208/* Define to 1 if you have the <sys/socket.h> header file. */ 209#define LWS_HAVE_SYS_SOCKET_H 210 211/* Define to 1 if you have the <sys/sockio.h> header file. */ 212/* #undef LWS_HAVE_SYS_SOCKIO_H */ 213 214/* Define to 1 if you have the <sys/stat.h> header file. */ 215#define LWS_HAVE_SYS_STAT_H 216 217/* Define to 1 if you have the <sys/types.h> header file. */ 218#define LWS_HAVE_SYS_TYPES_H 219 220/* Define to 1 if you have the <unistd.h> header file. */ 221#define LWS_HAVE_UNISTD_H 222 223#define LWS_HAVE_TCP_USER_TIMEOUT 224 225/* Define to 1 if you have the `vfork' function. */ 226#define LWS_HAVE_VFORK 227 228/* Define to 1 if you have the <vfork.h> header file. */ 229/* #undef LWS_HAVE_VFORK_H */ 230 231/* Define to 1 if `fork' works. */ 232#define LWS_HAVE_WORKING_FORK 233 234/* Define to 1 if `vfork' works. */ 235#define LWS_HAVE_WORKING_VFORK 236 237/* Define to 1 if execvpe() exists */ 238#define LWS_HAVE_EXECVPE 239 240/* Define to 1 if you have the <zlib.h> header file. */ 241/* #undef LWS_HAVE_ZLIB_H */ 242 243#define LWS_HAVE_GETLOADAVG 244 245/* Define to the sub-directory in which libtool stores uninstalled libraries. 246 */ 247#undef LT_OBJDIR // We're not using libtool 248 249/* Define to rpl_malloc if the replacement function should be used. */ 250/* #undef malloc */ 251 252/* Define to rpl_realloc if the replacement function should be used. */ 253/* #undef realloc */ 254 255/* Define to 1 if we have getifaddrs */ 256#define LWS_HAVE_GETIFADDRS 257 258/* Define if the inline keyword doesn't exist. */ 259/* #undef inline */ 260 261/* #undef LWS_WITH_ZLIB */ 262#define LWS_HAS_PTHREAD_SETNAME_NP 263 264/* Defined if you have the <inttypes.h> header file. */ 265#define LWS_HAVE_INTTYPES_H 266 267#endif