unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* [PATCH] Fix Emacs 26.3 compilation on RHEL/CentOS 5
@ 2019-08-29 17:40 Patrick J. LoPresti
  2019-08-30  4:01 ` Richard Stallman
  2019-08-30  8:57 ` Eli Zaretskii
  0 siblings, 2 replies; 3+ messages in thread
From: Patrick J. LoPresti @ 2019-08-29 17:40 UTC (permalink / raw)
  To: emacs-devel

[-- Attachment #1: Type: text/plain, Size: 869 bytes --]

Not sure whether anyone cares about supporting ancient Linux versions...
But RHEL 5.x shipped with librsvg2 2.16.1, which did not provide the
LIBSRVG_CHECK_VERSION macro.

Simple patch below allows Emacs 26.3 to compile on RHEL/CentOS 5.

 - Pat

diff -u -r emacs-26.3-orig/src/image.c emacs-26.3/src/image.c
--- emacs-26.3-orig/src/image.c 2019-06-12 03:50:42.000000000 -0700
+++ emacs-26.3/src/image.c      2019-08-29 10:13:13.000000000 -0700
@@ -9313,9 +9313,11 @@
   #if GNUC_PREREQ (4, 6, 0)
    #pragma GCC diagnostic push
   #endif
+  #if defined(LIBSRVG_CHECK_VERSION)
   #if LIBRSVG_CHECK_VERSION (2, 45, 1) && GNUC_PREREQ (4, 2, 0)
    #pragma GCC diagnostic ignored "-Wdeprecated-declarations"
   #endif
+  #endif

   /* Parse the contents argument and fill in the rsvg_handle.  */
   rsvg_handle_write (rsvg_handle, (unsigned char *) contents, size, &err);

[-- Attachment #2: Type: text/html, Size: 1058 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-08-30  8:57 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-08-29 17:40 [PATCH] Fix Emacs 26.3 compilation on RHEL/CentOS 5 Patrick J. LoPresti
2019-08-30  4:01 ` Richard Stallman
2019-08-30  8:57 ` Eli Zaretskii

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).