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 40847f4
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions examples/tls/tls_common.h
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ typedef struct SockIoCbCtx {

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

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

#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 40847f4

Please sign in to comment.