Skip to content

Commit 4677da6

Browse files
authored
Merge pull request #593 from Redbeanw44602/master
Fix build on win32 & mingw.
2 parents 262e8ef + 7c9611d commit 4677da6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

ext/solv_xfopen.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
#include <stddef.h>
1212

13-
#ifdef _WIN32
13+
#ifdef _MSC_VER
1414
#include <BaseTsd.h>
1515
typedef SSIZE_T ssize_t;
1616
#else

src/repo_write.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ write_compressed_blob(Repodata *data, void *blob, int len)
188188
write_u8(data, clen);
189189
write_blob(data, cpage, clen);
190190
}
191-
blob += chunk;
191+
blob = (char*)blob + chunk;
192192
len -= chunk;
193193
}
194194
}

0 commit comments

Comments
 (0)