Skip to content

Commit

Permalink
Fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
dg0yt committed Sep 11, 2024
1 parent 5015a15 commit 63c77c0
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
1 change: 1 addition & 0 deletions ports/libdvdread/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ vcpkg_from_gitlab(
HEAD_REF master
PATCHES
inttypes.diff
ssize_t.diff
)
file(WRITE "${SOURCE_PATH}/ChangeLog" "Cf. https://code.videolan.org/videolan/libdvdread/-/commits/${VERSION}/") # not in git

Expand Down
13 changes: 13 additions & 0 deletions ports/libdvdread/ssize_t.diff
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
diff --git a/src/dvdread/dvd_reader.h b/src/dvdread/dvd_reader.h
index 5681e0e..d1495c2 100644
--- a/src/dvdread/dvd_reader.h
+++ b/src/dvdread/dvd_reader.h
@@ -25,6 +25,8 @@

#ifdef _MSC_VER
#include <config.h>
+#include <windows.h>
+typedef SSIZE_T ssize_t;

#include <stdio.h>
#include <stdlib.h>
2 changes: 1 addition & 1 deletion versions/l-/libdvdread.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"versions": [
{
"git-tree": "2c3c14040d565d8f8062125e3ab84284646f4883",
"git-tree": "dd61d694ffee9c969257bfb298e8b7895a07573e",
"version-semver": "6.1.3",
"port-version": 0
}
Expand Down

0 comments on commit 63c77c0

Please sign in to comment.