mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2026-07-05 13:40:49 +02:00
Merge pull request #10524 from JacobBarthelmeh/sgx
SGX build does not have fcntl.h
This commit is contained in:
@@ -5178,7 +5178,8 @@ char* wolfSSL_strnstr(const char* s1, const char* s2, size_t n)
|
||||
#endif /* not SINGLE_THREADED */
|
||||
|
||||
#if (defined(__unix__) || defined(__APPLE__)) && \
|
||||
!defined(WOLFSSL_LINUXKM) && !defined(WOLFSSL_ZEPHYR)
|
||||
!defined(WOLFSSL_LINUXKM) && !defined(WOLFSSL_ZEPHYR) && \
|
||||
!defined(WOLFSSL_SGX)
|
||||
|
||||
#include <fcntl.h>
|
||||
#include <errno.h>
|
||||
@@ -5247,7 +5248,8 @@ int wc_accept_cloexec(int sockfd, void* addr, void* addrlen)
|
||||
return fd;
|
||||
}
|
||||
|
||||
#endif /* (__unix__ || __APPLE__) && !WOLFSSL_LINUXKM && !WOLFSSL_ZEPHYR */
|
||||
#endif /* (__unix__ || __APPLE__) && !WOLFSSL_LINUXKM && !WOLFSSL_ZEPHYR &&
|
||||
* !WOLFSSL_SGX */
|
||||
|
||||
#if defined(WOLFSSL_LINUXKM) && defined(CONFIG_ARM64) && \
|
||||
defined(WC_SYM_RELOC_TABLES)
|
||||
|
||||
@@ -1864,7 +1864,8 @@ WOLFSSL_ABI WOLFSSL_API int wolfCrypt_Cleanup(void);
|
||||
#endif
|
||||
|
||||
#if (defined(__unix__) || defined(__APPLE__)) && \
|
||||
!defined(WOLFSSL_LINUXKM) && !defined(WOLFSSL_ZEPHYR)
|
||||
!defined(WOLFSSL_LINUXKM) && !defined(WOLFSSL_ZEPHYR) && \
|
||||
!defined(WOLFSSL_SGX)
|
||||
WOLFSSL_LOCAL void wc_set_cloexec(int fd);
|
||||
WOLFSSL_LOCAL int wc_open_cloexec(const char* path, int flags);
|
||||
WOLFSSL_LOCAL int wc_socket_cloexec(int domain, int type, int protocol);
|
||||
|
||||
Reference in New Issue
Block a user