Skip to content

Commit d980335

Browse files
Merge branch 'master' into hdr_fixes
2 parents 23c1efc + 9871829 commit d980335

31 files changed

+362
-503
lines changed

core_info.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2118,7 +2118,7 @@ static core_info_list_t *core_info_list_new(const char *path,
21182118
info->core_file_id.str = strdup(core_file_id);
21192119
info->core_file_id.hash = core_info_hash_string(core_file_id);
21202120

2121-
strlcpy(core_file_id + _len, ".info", sizeof(core_file_id) - _len);
2121+
strlcpy(core_file_id + _len, FILE_PATH_CORE_INFO_EXTENSION, sizeof(core_file_id) - _len);
21222122

21232123
/* Parse core info file */
21242124
if ((conf = core_info_get_config_file(core_file_id, info_dir)))

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)