diff --git a/ohos/arm64-v8a/include/libwebsockets.h b/ohos/arm64-v8a/include/libwebsockets.h index 460c7326..46b495e9 100644 --- a/ohos/arm64-v8a/include/libwebsockets.h +++ b/ohos/arm64-v8a/include/libwebsockets.h @@ -159,7 +159,7 @@ typedef unsigned long long lws_intptr_t; #define LWS_FORMAT(string_index) #endif -#if defined(__ANDROID__) +#if defined(__OHOS__) #include #define getdtablesize() sysconf(_SC_OPEN_MAX) #endif diff --git a/ohos/arm64-v8a/include/lws_config.h b/ohos/arm64-v8a/include/lws_config.h index 32b947ff..126e2611 100644 --- a/ohos/arm64-v8a/include/lws_config.h +++ b/ohos/arm64-v8a/include/lws_config.h @@ -6,7 +6,7 @@ #endif #endif -#define LWS_INSTALL_DATADIR "/Volumes/data/hw/arm64/share" +#define LWS_INSTALL_DATADIR "/Users/pt/Github/cocos2d-x-lite-external/ohos/arm64-v8a/share" /* Define to 1 to use wolfSSL/CyaSSL as a replacement for OpenSSL. * LWS_OPENSSL_SUPPORT needs to be set also for this to work. */ @@ -100,7 +100,7 @@ /* #undef LWS_WITH_CGI */ /* whether the Openssl is recent enough, and / or built with, ecdh */ -#define LWS_HAVE_OPENSSL_ECDH_H +/* #undef LWS_HAVE_OPENSSL_ECDH_H */ /* HTTP Proxy support */ /* #undef LWS_WITH_HTTP_PROXY */ diff --git a/ohos/arm64-v8a/lib/libwebsockets.a b/ohos/arm64-v8a/lib/libwebsockets.a index f3a98b57..a7f2cb1a 100644 Binary files a/ohos/arm64-v8a/lib/libwebsockets.a and b/ohos/arm64-v8a/lib/libwebsockets.a differ