projects
/
pspp
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Avoid compiler warnings when building without readline
[pspp]
/
src
/
ui
/
terminal
/
terminal-reader.c
diff --git
a/src/ui/terminal/terminal-reader.c
b/src/ui/terminal/terminal-reader.c
index ad3ced4960a8903396c0127cfdf9a4af67462157..0a1337d4ea0f3f8448a3f44df1524c7604825af6 100644
(file)
--- a/
src/ui/terminal/terminal-reader.c
+++ b/
src/ui/terminal/terminal-reader.c
@@
-38,7
+38,6
@@
static const bool have_readline = true;
#else
static const bool have_readline = false;
#else
static const bool have_readline = false;
-static int rl_end;
#endif
#endif
@@
-251,11
+250,11
@@
readline_prompt (enum prompt_style style)
}
}
+#if HAVE_READLINE
static int pfd[2];
static bool sigint_received ;
static int pfd[2];
static bool sigint_received ;
-
/*
A function similar to getc from stdio.
However this one may be interrupted by SIGINT.
/*
A function similar to getc from stdio.
However this one may be interrupted by SIGINT.
@@
-306,10
+305,6
@@
interruptible_getc (FILE *fp)
return c;
}
return c;
}
-
-
-#if HAVE_READLINE
-
static void
handler (int sig)
{
static void
handler (int sig)
{