feat(sockutls): Declare socketpair and gai_strerror via standard headers

Adding a reverse dependency to lwip and define macros, which
enable declarations of socketpair() and gai_strerror() in standard
heders (sys/socket.h and netdb.h)
This commit is contained in:
David Cermak
2024-12-16 18:07:57 +01:00
parent e12ecb8e89
commit b090a3cb69
3 changed files with 29 additions and 9 deletions

View File

@@ -32,3 +32,10 @@
#ifndef AF_UNIX
#define AF_UNIX 1
#endif
#ifndef PF_LOCAL
/*
* In POSIX, AF_UNIX and PF_LOCAL are essentially synonymous.
*/
#define PF_LOCAL AF_UNIX
#endif