shithub: libdvdcss

Download patch

ref: bced1ab455de4baebf6d6504e4ca08c21335fe83
parent: 146085608dd425ebe98c19d4fa1d8d734ceae26a
author: Diego Biurrun <[email protected]>
date: Fri Nov 14 10:44:05 EST 2014

msvc: Drop redefinition of unused function stat()

Also drop some unnecessary sys/stat.h #includes.

--- a/src/common.h
+++ b/src/common.h
@@ -52,7 +52,6 @@
 #           define off_t __int64
 #       endif
 #       define ssize_t SSIZE_T
-#       define stat _stati64
 #       define snprintf _snprintf
 #       define strdup _strdup
 #       define open _open
--- a/src/css.c
+++ b/src/css.c
@@ -39,7 +39,6 @@
 #include <stdlib.h>
 #include <string.h>
 #include <sys/types.h>
-#include <sys/stat.h>
 #ifdef HAVE_SYS_PARAM_H
 #   include <sys/param.h>
 #endif
--- a/test/dvd_region.c
+++ b/test/dvd_region.c
@@ -12,7 +12,6 @@
 #include <stdlib.h>
 #include <string.h>
 #include <sys/types.h>
-#include <sys/stat.h>
 #include <fcntl.h>
 #include <getopt.h>