Skip to content

Commit

Permalink
Fix for netdb.h.
Browse files Browse the repository at this point in the history
  • Loading branch information
dgarske committed Mar 1, 2024
1 parent 1618411 commit 0b60fae
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
3 changes: 3 additions & 0 deletions examples/tls/tls_common.h
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,9 @@ typedef struct SockIoCbCtx {

#ifndef WOLFSSL_USER_IO
/* socket includes */
#ifdef HAVE_NETDB_H
#include <netdb.h>
#endif

static inline int SockIORecv(WOLFSSL* ssl, char* buff, int sz, void* ctx)
{
Expand Down
3 changes: 3 additions & 0 deletions src/tpm2_swtpm.c
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@
#include <errno.h>
#include <string.h>
#include <stdio.h>
#ifdef HAVE_NETDB_H
#include <netdb.h>
#endif

#include <wolftpm/tpm2_socket.h>

Expand Down
1 change: 0 additions & 1 deletion wolftpm/tpm2_socket.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@
#else
#include <sys/types.h>
#include <sys/socket.h>
#include <netdb.h>

#define SOCKET_T int
#endif
Expand Down

0 comments on commit 0b60fae

Please sign in to comment.