[PATCH] ntdll: improve character device type detection on FreeBSD and macOS

Chip Davis cdavis at codeweavers.com
Sun Nov 8 14:11:50 CST 2020


November 8, 2020 11:41 AM, "Damjan Jovanovic" <damjan.jov at gmail.com> wrote:

> diff --git a/dlls/ntdll/unix/file.c b/dlls/ntdll/unix/file.c
> index d12a3ffb119..f039c3488a6 100644
> --- a/dlls/ntdll/unix/file.c
> +++ b/dlls/ntdll/unix/file.c
> @@ -6048,6 +6051,10 @@ static NTSTATUS get_device_info( int fd, FILE_FS_DEVICE_INFORMATION *info )
>      if (fstat( fd, &st ) < 0) return errno_to_status( errno );
>      if (S_ISCHR( st.st_mode ))
>      {
> +#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__)

Missing defined(__APPLE__) here.

Chip



More information about the wine-devel mailing list