Fossil SCM
Add a missing #include to diffcmd.c so that the build will work under mingw32.
Commit
00c8622a0270ed4ac8a7ff8fba98c433c661250626763f618e90ed1a6a037220
Parent
0d8c92882ae03ed…
1 file changed
+4
-2
+4
-2
| --- src/diffcmd.c | ||
| +++ src/diffcmd.c | ||
| @@ -19,12 +19,14 @@ | ||
| 19 | 19 | */ |
| 20 | 20 | #include "config.h" |
| 21 | 21 | #include "diffcmd.h" |
| 22 | 22 | #include <assert.h> |
| 23 | 23 | |
| 24 | -/* Need to catch the interrupt signal on unix */ | |
| 25 | -#ifndef _WIN32 | |
| 24 | +/* includes needed to catch interrupts */ | |
| 25 | +#ifdef _WIN32 | |
| 26 | +# include <windows.h> | |
| 27 | +#else | |
| 26 | 28 | # include <signal.h> |
| 27 | 29 | #endif |
| 28 | 30 | |
| 29 | 31 | /* |
| 30 | 32 | ** Use the right null device for the platform. |
| 31 | 33 |
| --- src/diffcmd.c | |
| +++ src/diffcmd.c | |
| @@ -19,12 +19,14 @@ | |
| 19 | */ |
| 20 | #include "config.h" |
| 21 | #include "diffcmd.h" |
| 22 | #include <assert.h> |
| 23 | |
| 24 | /* Need to catch the interrupt signal on unix */ |
| 25 | #ifndef _WIN32 |
| 26 | # include <signal.h> |
| 27 | #endif |
| 28 | |
| 29 | /* |
| 30 | ** Use the right null device for the platform. |
| 31 |
| --- src/diffcmd.c | |
| +++ src/diffcmd.c | |
| @@ -19,12 +19,14 @@ | |
| 19 | */ |
| 20 | #include "config.h" |
| 21 | #include "diffcmd.h" |
| 22 | #include <assert.h> |
| 23 | |
| 24 | /* includes needed to catch interrupts */ |
| 25 | #ifdef _WIN32 |
| 26 | # include <windows.h> |
| 27 | #else |
| 28 | # include <signal.h> |
| 29 | #endif |
| 30 | |
| 31 | /* |
| 32 | ** Use the right null device for the platform. |
| 33 |