Fossil SCM

Only #include "linenoise.h" in fshell.c on non-Windows platforms

andygoth 2016-11-16 19:25 trunk
Commit 9c90682b02f39a2e55b09c094eb73a5037be4ef7
1 file changed +3 -3
+3 -3
--- src/fshell.c
+++ src/fshell.c
@@ -25,16 +25,16 @@
2525
** It allows multiple commands to be issued without having to reenter the
2626
** crypto phasephrase for each command.
2727
*/
2828
#include "config.h"
2929
#include "fshell.h"
30
-#include "linenoise.h"
3130
#include <ctype.h>
3231
3332
#ifndef _WIN32
34
-#include <sys/types.h>
35
-#include <sys/wait.h>
33
+# include "linenoise.h"
34
+# include <sys/types.h>
35
+# include <sys/wait.h>
3636
#endif
3737
3838
3939
/*
4040
** COMMAND: shell*
4141
--- src/fshell.c
+++ src/fshell.c
@@ -25,16 +25,16 @@
25 ** It allows multiple commands to be issued without having to reenter the
26 ** crypto phasephrase for each command.
27 */
28 #include "config.h"
29 #include "fshell.h"
30 #include "linenoise.h"
31 #include <ctype.h>
32
33 #ifndef _WIN32
34 #include <sys/types.h>
35 #include <sys/wait.h>
 
36 #endif
37
38
39 /*
40 ** COMMAND: shell*
41
--- src/fshell.c
+++ src/fshell.c
@@ -25,16 +25,16 @@
25 ** It allows multiple commands to be issued without having to reenter the
26 ** crypto phasephrase for each command.
27 */
28 #include "config.h"
29 #include "fshell.h"
 
30 #include <ctype.h>
31
32 #ifndef _WIN32
33 # include "linenoise.h"
34 # include <sys/types.h>
35 # include <sys/wait.h>
36 #endif
37
38
39 /*
40 ** COMMAND: shell*
41

Keyboard Shortcuts

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