Skip to content
Snippets Groups Projects
  • Tom Lane's avatar
    0ab3595e
    Rename strtoi() to strtoint(). · 0ab3595e
    Tom Lane authored
    NetBSD has seen fit to invent a libc function named strtoi(), which
    conflicts with the long-established static functions of the same name in
    datetime.c and ecpg's interval.c.  While muttering darkly about intrusions
    on application namespace, we'll rename our functions to avoid the conflict.
    
    Back-patch to all supported branches, since this would affect attempts
    to build any of them on recent NetBSD.
    
    Thomas Munro
    0ab3595e
    History
    Rename strtoi() to strtoint().
    Tom Lane authored
    NetBSD has seen fit to invent a libc function named strtoi(), which
    conflicts with the long-established static functions of the same name in
    datetime.c and ecpg's interval.c.  While muttering darkly about intrusions
    on application namespace, we'll rename our functions to avoid the conflict.
    
    Back-patch to all supported branches, since this would affect attempts
    to build any of them on recent NetBSD.
    
    Thomas Munro