Add a script to install the file(1) tool
[msysgit/kusma.git] / src / file / patches / 0002-On-msysGit-include-pthread.h-for-struct-timespec.patch
blobe08479e0ae231e72f9c897f0124f5de2981e834f
1 From 9c4e13e91ef1201d1cb4dd6daefc02d1b0ad58e2 Mon Sep 17 00:00:00 2001
2 From: Johannes Schindelin <johannes.schindelin@gmx.de>
3 Date: Mon, 7 Dec 2009 17:21:21 +0100
4 Subject: [PATCH 2/6] On msysGit, include pthread.h for struct timespec
6 Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
7 ---
8 src/cdf_time.c | 4 ++++
9 src/readcdf.c | 4 ++++
10 2 files changed, 8 insertions(+), 0 deletions(-)
12 diff --git a/src/cdf_time.c b/src/cdf_time.c
13 index 932253b..0ff4ccc 100644
14 --- a/src/cdf_time.c
15 +++ b/src/cdf_time.c
16 @@ -31,6 +31,10 @@ FILE_RCSID("@(#)$File: cdf_time.c,v 1.6 2009/03/10 11:44:29 christos Exp $")
17 #endif
19 #include <time.h>
20 +#ifdef WIN32
21 +/* definition of timespec */
22 +#include <pthread.h>
23 +#endif
24 #ifdef TEST
25 #include <err.h>
26 #endif
27 diff --git a/src/readcdf.c b/src/readcdf.c
28 index 15f53fe..df14c35 100644
29 --- a/src/readcdf.c
30 +++ b/src/readcdf.c
31 @@ -33,6 +33,10 @@ FILE_RCSID("@(#)$File: readcdf.c,v 1.18 2009/05/06 20:48:22 christos Exp $")
32 #include <unistd.h>
33 #include <string.h>
34 #include <time.h>
35 +#ifdef WIN32
36 +/* definition of timespec */
37 +#include <pthread.h>
38 +#endif
39 #include <ctype.h>
41 #include "cdf.h"
42 --
43 1.6.5.1.1371.g1abf3