]> git.ipfire.org Git - thirdparty/libsolv.git/commitdiff
add missing headers 584/head
authorAntoinePrv <AntoinePrv@users.noreply.github.com>
Mon, 14 Apr 2025 12:15:53 +0000 (14:15 +0200)
committerAntoinePrv <AntoinePrv@users.noreply.github.com>
Mon, 14 Apr 2025 13:11:35 +0000 (15:11 +0200)
ext/solv_xfopen.h

index b79e00936321ebcce8729b9b8c8a66b04375790c..24b68252317e9a19bc4212f430fe4fd177cd5157 100644 (file)
@@ -8,6 +8,15 @@
 #ifndef SOLV_XFOPEN_H
 #define SOLV_XFOPEN_H
 
+#include <stddef.h>
+
+#ifdef _WIN32
+  #include <BaseTsd.h>
+  typedef SSIZE_T ssize_t;
+#else
+  #include <unistd.h>
+#endif
+
 extern FILE *solv_xfopen(const char *fn, const char *mode);
 extern FILE *solv_xfopen_fd(const char *fn, int fd, const char *mode);
 extern FILE *solv_xfopen_buf(const char *fn, char **bufp, size_t *buflp, const char *mode);