From 2eba60b62ba42b4dc5e140eb0568d0a8be91caf3 Mon Sep 17 00:00:00 2001 From: Marcus Meissner Date: Fri, 7 Jan 2022 10:34:04 +0100 Subject: [PATCH] merge a fix from mingw for ssize_t double definition --- libgphoto2_port/gphoto2/gphoto2-port-portability.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libgphoto2_port/gphoto2/gphoto2-port-portability.h b/libgphoto2_port/gphoto2/gphoto2-port-portability.h index b8b183573..eda812893 100644 --- a/libgphoto2_port/gphoto2/gphoto2-port-portability.h +++ b/libgphoto2_port/gphoto2/gphoto2-port-portability.h @@ -48,7 +48,9 @@ #define __func__ __FUNCTION__ +#ifndef _SSIZE_T_DEFINED typedef SSIZE_T ssize_t; +#endif /* Work-around for readdir() */ typedef struct {