Fossil SCM

Add a missing #include to diffcmd.c so that the build will work under mingw32.

drh 2021-08-27 12:09 trunk
Commit 00c8622a0270ed4ac8a7ff8fba98c433c661250626763f618e90ed1a6a037220
1 file changed +4 -2
+4 -2
--- src/diffcmd.c
+++ src/diffcmd.c
@@ -19,12 +19,14 @@
1919
*/
2020
#include "config.h"
2121
#include "diffcmd.h"
2222
#include <assert.h>
2323
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
2628
# include <signal.h>
2729
#endif
2830
2931
/*
3032
** Use the right null device for the platform.
3133
--- 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

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button