Skip to content

Commit 687c241

Browse files
committed
smb: update libsmb2 library to latest master for griffin compatibility
1 parent a458d7e commit 687c241

17 files changed

Lines changed: 184 additions & 166 deletions

deps/libsmb2/include/libsmb2-private.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,9 @@ extern "C" {
3434
#endif /* __APPLE__ */
3535
#endif /* HAVE_LIBKRB5 */
3636

37+
#ifndef MIN
3738
#define MIN(a,b) (((a)<(b))?(a):(b))
39+
#endif
3840

3941
#ifndef discard_const
4042
#define discard_const(ptr) ((void *)((intptr_t)(ptr)))

deps/libsmb2/include/smb2/libsmb2.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,8 +124,11 @@ struct smb2dirent {
124124
#if defined(_WINDOWS) || defined(_XBOX)
125125
typedef SOCKET t_socket;
126126
#else
127+
#ifndef T_SOCKET_DEFINED
128+
#define T_SOCKET_DEFINED
127129
typedef int t_socket;
128130
#endif
131+
#endif
129132

130133
/*
131134
* Create an SMB2 context.

0 commit comments

Comments
 (0)