summaryrefslogtreecommitdiff
path: root/recipes/libdvdread/0003-dvd_reader.h-Define-ssize_t-on-MSVC.patch
blob: 0f96758c6c8451856794ead4158f0b42de462763 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
From 00c61176749ad5972b599c43e4036ce703d1eb93 Mon Sep 17 00:00:00 2001
From: Nirbheek Chauhan <nirbheek@centricular.com>
Date: Fri, 7 Sep 2018 17:22:51 +0530
Subject: [PATCH 3/3] dvd_reader.h: Define ssize_t on MSVC

Not sure how this was missed upstream, honestly.
---
 src/dvdread/dvd_reader.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/dvdread/dvd_reader.h b/src/dvdread/dvd_reader.h
index 0e6d395..dfd91e4 100644
--- a/src/dvdread/dvd_reader.h
+++ b/src/dvdread/dvd_reader.h
@@ -28,6 +28,8 @@
 
 #include <stdio.h>
 #include <stdlib.h>
+#include <BaseTsd.h>
+#define ssize_t SSIZE_T
 #endif
 
 #include <sys/types.h>
-- 
2.18.0.windows.1