[BACK]Return to patch-link-grammar_utilities.c CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / textproc / link-grammar / patches

File: [cvs.NetBSD.org] / pkgsrc / textproc / link-grammar / patches / patch-link-grammar_utilities.c (download)

Revision 1.2, Fri Apr 17 01:43:41 2020 UTC (3 months, 2 weeks ago) by gutteridge
Branch: MAIN
CVS Tags: pkgsrc-2020Q2-base, pkgsrc-2020Q2, HEAD
Changes since 1.1: +2 -1 lines

link-grammar: add the upstream pull request to a patch

$NetBSD: patch-link-grammar_utilities.c,v 1.2 2020/04/17 01:43:41 gutteridge Exp $

Fix SunOS build.
https://github.com/opencog/link-grammar/pull/1093

--- link-grammar/utilities.c.orig	2020-02-29 01:44:12.000000000 +0000
+++ link-grammar/utilities.c
@@ -757,7 +757,7 @@ bool strtodC(const char *s, float *r)
 {
 	char *err;
 
-#ifdef HAVE_LOCALE_T
+#if defined(HAVE_LOCALE_T) && !defined(__sun__)
 	double val = strtod_l(s, &err, get_C_LC_NUMERIC());
 #else
 	/* dictionary_setup_locale() invokes setlocale(LC_NUMERIC, "C") */