[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug-gv] Re: [bug #24380] gv 3.6.6 on Mac OS X: Undefined symbols: _strn

From: Markus Steinborn
Subject: [bug-gv] Re: [bug #24380] gv 3.6.6 on Mac OS X: Undefined symbols: _strndup
Date: Fri, 26 Sep 2008 17:51:56 +0200 (CEST)
User-agent: Alpine 1.10 (LFD 962 2008-03-14)

For some reason this mail does not contain the full code to insert. On https://savannah.gnu.org/bugs/?24380 the code is not cropped. I have no idea why...

On Fri, 26 Sep 2008, Markus Steinborn wrote:

Update of bug #24380 (project gv):

                 Status:             In Progress => Need Info


Follow-up Comment #2:

Could you please add the following code at the beginning of src/secsscanf.c
just after the includes and report me if it helps? If so, I will modify the
configure script to conditionally insert this code if needed.

/* begin test code */
size_t strnlen(const char *s, size_t len)
   size_t i;
   for(i=0; i<len && *(s+i); i++);
   return i;

char* strndup (char const *s, size_t n)
 size_t len = strnlen (s, n);
 char *new = malloc (len + 1);

 if (new == NULL)
   return NULL;

 new[len] = '

reply via email to

[Prev in Thread] Current Thread [Next in Thread]