[Top][All Lists]

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

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

From: Markus Steinborn
Subject: [bug-gv] [bug #24380] gv 3.6.6 on Mac OS X: Undefined symbols: _strndup
Date: Fri, 26 Sep 2008 15:37:52 +0000
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv: Gecko/20080702 SeaMonkey/1.1.11

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]