Displaying 3 results from an estimated 3 matches for "guestfish_init".
2014 Dec 04
1
[PATCH] fish: fix build warning when readline-devel is missing
...,12 @@ shell_script (void)
#define FISH "><fs> "
+#ifdef HAVE_LIBREADLINE
static char *ps1 = NULL; /* GUESTFISH_PS1 */
static char *ps_output = NULL; /* GUESTFISH_OUTPUT */
-static char *ps_restore = NULL; /* GUESTFISH_RESTORE */
static char *ps_init = NULL; /* GUESTFISH_INIT */
+#endif /* HAVE_LIBREADLINE */
+static char *ps_restore = NULL; /* GUESTFISH_RESTORE */
static char *line_read = NULL;
static char *
@@ -698,10 +700,12 @@ script (int prompt)
struct parsed_command pcmd;
if (prompt) {
+#ifdef HAVE_LIBREADLINE
if (ps_init) { /* GUESTF...
2015 Nov 22
1
Re: installation error
Never mind I was missing libreadline-dev
I gues this check would be good to be added with an error to the configure script since it creates error in compilation
Regards,
Peter
> On 22 Nov 2015, at 20:06, Keresztes Péter-Zoltán <zozo@z0z0.tk> wrote:
>
> Hello,
>
> I have got into a different issue while trying to compile the latest version of libguestfs:
>
> CC
2016 Apr 04
2
[PATCH 1/2] Use 'error' function consistently throughout.
..."GUESTFISH_OUTPUT");
if (str) {
free (ps_output);
ps_output = strdup (str);
- if (!ps_output) {
- perror ("strdup");
- exit (EXIT_FAILURE);
- }
+ if (!ps_output)
+ error (EXIT_FAILURE, errno, "strdup");
}
str = getenv ("GUESTFISH_INIT");
if (str) {
free (ps_init);
ps_init = strdup (str);
- if (!ps_init) {
- perror ("strdup");
- exit (EXIT_FAILURE);
- }
+ if (!ps_init)
+ error (EXIT_FAILURE, errno, "strdup");
}
#endif
}
@@ -1557,10 +1536,8 @@ decode_ps1 (const cha...