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