From 50f1ab7c631941a1f8b05842bf69a5a65447245f Mon Sep 17 00:00:00 2001 From: maya Date: Wed, 21 Mar 2018 08:48:15 +0000 Subject: emacs25: handle NAN not existing on VAX. --- editors/emacs25/distinfo | 3 ++- editors/emacs25/patches/patch-src_lread.c | 22 ++++++++++++++++++++++ 2 files changed, 24 insertions(+), 1 deletion(-) create mode 100644 editors/emacs25/patches/patch-src_lread.c (limited to 'editors') diff --git a/editors/emacs25/distinfo b/editors/emacs25/distinfo index 91e92776108..da8e0986885 100644 --- a/editors/emacs25/distinfo +++ b/editors/emacs25/distinfo @@ -1,7 +1,8 @@ -$NetBSD: distinfo,v 1.6 2017/09/13 14:21:34 ryoon Exp $ +$NetBSD: distinfo,v 1.7 2018/03/21 08:48:15 maya Exp $ SHA1 (emacs-25.3.tar.gz) = 82ad18404d460e32be29aa883a0e6bfc1901ae75 RMD160 (emacs-25.3.tar.gz) = 8740bb96aeab77cd35c6d4625f3676991281c7bc SHA512 (emacs-25.3.tar.gz) = cd3f51ee5f6c95481f22cd48abfe1d4df1407207ed4b046c9563b24d524f85aa80f15900755091d532c31ea9bd9f6978300128c480d74d28b6b937f96846b1bb Size (emacs-25.3.tar.gz) = 62988771 bytes SHA1 (patch-src_inotify.c) = 1fdc6566ed57e8418f1ddc85bb03518d7d9d6bb3 +SHA1 (patch-src_lread.c) = a1edaea258b00ba10c176a8ad27711dcac1af7c1 diff --git a/editors/emacs25/patches/patch-src_lread.c b/editors/emacs25/patches/patch-src_lread.c new file mode 100644 index 00000000000..470d5f77ec3 --- /dev/null +++ b/editors/emacs25/patches/patch-src_lread.c @@ -0,0 +1,22 @@ +$NetBSD: patch-src_lread.c,v 1.1 2018/03/21 08:48:15 maya Exp $ + +Handle NAN not existing (VAX) + +--- src/lread.c.orig 2017-04-14 15:02:47.000000000 +0000 ++++ src/lread.c +@@ -3429,6 +3429,7 @@ string_to_number (char const *string, in + cp += 3; + value = INFINITY; + } ++#if 0 + else if (cp[-1] == '+' + && cp[0] == 'N' && cp[1] == 'a' && cp[2] == 'N') + { +@@ -3437,6 +3438,7 @@ string_to_number (char const *string, in + /* NAN is a "positive" NaN on all known Emacs hosts. */ + value = NAN; + } ++#endif + else + cp = ecp; + } -- cgit v1.2.3