Skip to content

Commit

Permalink
options/posix: Define hstrerror
Browse files Browse the repository at this point in the history
  • Loading branch information
Dennisbonke committed Feb 12, 2024
1 parent b0793ac commit 0db45bd
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions options/posix/generic/netdb-stubs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -480,3 +480,7 @@ void setservent(int) {
__builtin_unreachable();
}

const char *hstrerror(int) {
__ensure(!"Not implemented");
__builtin_unreachable();
}
3 changes: 3 additions & 0 deletions options/posix/include/netdb.h
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,9 @@ void setnetent(int);
void setprotoent(int);
void setservent(int);

// Deprecated GNU extension
const char *hstrerror(int err);

#endif /* !__MLIBC_ABI_ONLY */

#ifdef __cplusplus
Expand Down

0 comments on commit 0db45bd

Please sign in to comment.