Skip to content

Commit e4b8431

Browse files
authored
Merge pull request #584 from AntoinePrv/missing-headers
Add missing headers
2 parents 8185d17 + b69d0a1 commit e4b8431

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

ext/solv_xfopen.h

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,15 @@
88
#ifndef SOLV_XFOPEN_H
99
#define SOLV_XFOPEN_H
1010

11+
#include <stddef.h>
12+
13+
#ifdef _WIN32
14+
#include <BaseTsd.h>
15+
typedef SSIZE_T ssize_t;
16+
#else
17+
#include <unistd.h>
18+
#endif
19+
1120
extern FILE *solv_xfopen(const char *fn, const char *mode);
1221
extern FILE *solv_xfopen_fd(const char *fn, int fd, const char *mode);
1322
extern FILE *solv_xfopen_buf(const char *fn, char **bufp, size_t *buflp, const char *mode);

0 commit comments

Comments
 (0)