As of JPEG-9, the type 'boolean' is an enumeration, but since glib defines TRUE and FALSE as numeric constants and this is C++, they need to be explicitly casted. --- a/src/af/util/xp/ut_jpeg.cpp +++ b/src/af/util/xp/ut_jpeg.cpp @@ -102,7 +102,7 @@ static boolean _jpegFillInputBuffer (j_decompress_ptr cinfo) src->pub.next_input_byte = src->sourceBuf->getPointer (src->pos); src->pub.bytes_in_buffer = src->sourceBuf->getLength (); - return 1; // boolean is a libjpeg type that is an int. + return (boolean)TRUE; } /* In the following file, we also need to reverse header include order: JPEG needs to be included before Glib, which is included by "abiword-garble.h" for this fix to work. The JPEG header needs the types FILE and size_t, we can get them from cstdio. --- a/plugins/garble/xp/abiword-garble-jpeg.cpp 2009-09-05 17:49:53.000000000 +0200 +++ b/plugins/garble/xp/abiword-garble-jpeg.cpp 2014-09-07 21:28:49.364008571 +0200 @@ -20,12 +20,14 @@ * 02111-1307, USA. */ -#include "abiword-garble.h" +#include extern "C" { #include } +#include "abiword-garble.h" + //----------------------------------------------------------------------------- typedef struct { struct jpeg_destination_mgr pub; @@ -49,7 +51,7 @@ mem_dest_ptr dest = (mem_dest_ptr) cinfo->dest; dest->pub.next_output_byte = dest->buf; dest->pub.free_in_buffer = dest->bufsize; - return FALSE; + return (boolean)FALSE; } //----------------------------------------------------------------------------- @@ -96,7 +98,7 @@ cinfo.image_width = (JDIMENSION) w; cinfo.image_height = (JDIMENSION) h; jpeg_set_defaults (&cinfo); - jpeg_set_quality ( &cinfo, 50, TRUE ); + jpeg_set_quality ( &cinfo, 50, (boolean)TRUE ); cinfo.dest = (struct jpeg_destination_mgr *) (*cinfo.mem->alloc_small)((j_common_ptr)&cinfo, JPOOL_PERMANENT, sizeof(mem_destination_mgr)); dest = (mem_dest_ptr) cinfo.dest; dest->pub.init_destination = _jpeg_init_destination; @@ -105,7 +107,7 @@ dest->buf = (JOCTET*)data; dest->bufsize = length; dest->jpegsize = 0; - jpeg_start_compress (&cinfo, TRUE); + jpeg_start_compress (&cinfo, (boolean)TRUE); // write data for (int i=0; iAgeCommit message (Expand)Author 2022-10-23etc: systemd services shouldn't ‘RemainAfterExit’....* etc/guix-daemon.service.in (RemainAfterExit): Don't. * etc/guix-publish.service.in (RemainAfterExit): Likewise don't. Tobias Geerinckx-Rice 2022-10-23etc: Add ‘Restart=always’ to both systemd services....* etc/guix-daemon.service.in (Restart): ‘Always’ do. * etc/guix-publish.service.in (Restart): Likewise. Tobias Geerinckx-Rice 2022-10-23etc: Add ‘OOMPolicy=continue’ to guix-daemon.service....* etc/guix-daemon.service.in (OOMPolicy): Continue. Tobias Geerinckx-Rice 2021-07-07guix-install.sh: Prompt for configuring substitutes discovery....Also ensure prompt_yes_no always print the message with a trailing space, which is more pleasing to the eye. * etc/guix-daemon.conf.in <--discover=no>: New guix-daemon option. * etc/guix-daemon.service.in: Likewise. * etc/init.d/guix-daemon.in: Likewise. * etc/openrc/guix-daemon.in: Likewise. * etc/guix-install.sh (configure_substitute_discovery): New procedure. (sys_enable_guix_daemon): Ask the user whether automatic substitute discovery should be enabled. Set the '--discover' argument accordingly. (prompt_yes_no): Add a trailing space to the message. (sys_authorize_build_farms): Remove trailing space from the message argument. * NEWS (Distribution): Add news. Maxim Cournoyer