From 74666bff38886a149388f0f4fad66161a4957ee3 Mon Sep 17 00:00:00 2001 From: "Maxin B. John" Date: Sun, 16 Jul 2017 21:21:45 +0300 Subject: [PATCH] stdinc.h: fix build with mingw (#122) Fixes this build error with mingw: ... | compilation terminated. | In file included from ../pkgconf-1.3.7/libpkgconf/libpkgconf.h:19:0, | from ../pkgconf-1.3.7/libpkgconf/audit.c:16: | ../pkgconf-1.3.7/libpkgconf/stdinc.h:36:12: fatal error: BaseTsd.h: No such file or directory | # include Signed-off-by: Maxin B. John --- libpkgconf/stdinc.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/libpkgconf/stdinc.h b/libpkgconf/stdinc.h index ac7e53c..d8efcf5 100644 --- a/libpkgconf/stdinc.h +++ b/libpkgconf/stdinc.h @@ -33,10 +33,18 @@ # include # define PATH_DEV_NULL "nul" # ifndef ssize_t +# ifndef __MINGW32__ # include +# else +# include +# endif # define ssize_t SSIZE_T # endif -# include "win-dirent.h" +# ifndef __MINGW32__ +# include "win-dirent.h" +# else +# include +# endif #else # define PATH_DEV_NULL "/dev/null" # include