Re: how to test for a prototype difference

2014-05-19 Thread Eric Blake
On 05/17/2014 11:07 AM, Thomas Klausner wrote: >>> Here's what I came up with: >>> AC_CACHE_CHECK([parameter type for backtrace()], >>> [am_cv_proto_backtrace_type], >> >> The am_cv_ prefix is used by Automake so I suggest choosing a >> different one. > > What do you suggest using as prefixes?

Re: how to test for a prototype difference

2014-05-17 Thread Thomas Klausner
On Fri, May 16, 2014 at 11:19:58AM -0400, Nick Bowler wrote: > Some comments... Thanks. > On 2014-05-16 02:33 +0200, Thomas Klausner wrote: > > Hi Eric! > > > > On Wed, Apr 30, 2014 at 06:51:23PM -0600, Eric Blake wrote: > > > On 04/30/2014 06:12 PM, Thomas Klausner wrote: > [...] > > > > I'd li

Re: how to test for a prototype difference

2014-05-16 Thread Nick Bowler
Hello, Some comments... On 2014-05-16 02:33 +0200, Thomas Klausner wrote: > Hi Eric! > > On Wed, Apr 30, 2014 at 06:51:23PM -0600, Eric Blake wrote: > > On 04/30/2014 06:12 PM, Thomas Klausner wrote: [...] > > > I'd like to test for the difference int <-> size_t in a configure > > > script so I

Re: how to test for a prototype difference

2014-05-15 Thread Thomas Klausner
Hi Eric! On Wed, Apr 30, 2014 at 06:51:23PM -0600, Eric Blake wrote: > On 04/30/2014 06:12 PM, Thomas Klausner wrote: > > Hi! > > > > I found out that the prototypes for backtrace() and backtrace_symbol() > > differ on some operating systems. > > > > > > > The main difference is that on NetBSD

Re: how to test for a prototype difference

2014-05-01 Thread Philip Herron
Awh cool thanks for sharing that i couldn't figure out how to do this with something in work. On 1 May 2014 01:51, Eric Blake wrote: > On 04/30/2014 06:12 PM, Thomas Klausner wrote: >> Hi! >> >> I found out that the prototypes for backtrace() and backtrace_symbol() >> differ on some operating sys

Re: how to test for a prototype difference

2014-04-30 Thread Eric Blake
On 04/30/2014 06:12 PM, Thomas Klausner wrote: > Hi! > > I found out that the prototypes for backtrace() and backtrace_symbol() > differ on some operating systems. > > > The main difference is that on NetBSD, size_t is used for most > arguments that are int on the other systems; also, > backtra

how to test for a prototype difference

2014-04-30 Thread Thomas Klausner
Hi! I found out that the prototypes for backtrace() and backtrace_symbol() differ on some operating systems. These are the same: Linux: int backtrace(void **buffer, int size); char **backtrace_symbols(void *const *buffer, int size); void backtrace_symbols_fd(void *const *buffer, int size, int fd