[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-gnulib] Patch proposal: 1-gary-safe-xfree.patch
From: |
Bruno Haible |
Subject: |
Re: [Bug-gnulib] Patch proposal: 1-gary-safe-xfree.patch |
Date: |
Mon, 15 Sep 2003 22:22:09 +0200 |
User-agent: |
KMail/1.5 |
Paul Eggert wrote:
> > This is too conservative. This test succeeds only on glibc systems,
> > and fails on Solaris, IRIX, HP-UX, OSF/1, AIX, Woe32.
>
> OK, how about if we change it to plain '#ifndef _POSIX_VERSION'? That
> should work on all the systems that you mentioned, except perhaps
> Woe32
#include <unistd.h>
#ifndef _POSIX_VERSION
#error "'free (NULL)' is not known to work"
#endif
succeeds on all of Linux, Solaris, IRIX, HP-UX, OSF/1, AIX, and fails on
Woe32 (mingw32, msvc) because this platform doesn't have <unistd.h>. But
the test also succeeds on SunOS 4 [1] and instead fails on NeXT [2].
So it's still not the right test against SunOS 4...
Bruno
[1] http://www.octave.org/octave-lists/archive/bug-octave.1996/msg00100.html
[2] http://www.geocrawler.com/archives/3/379/1993/11/50/2087637/
- Re: [Bug-gnulib] Patch proposal: 1-gary-safe-xfree.patch, (continued)
- Re: [Bug-gnulib] Patch proposal: 1-gary-safe-xfree.patch, Paul Eggert, 2003/09/11
- Re: [Bug-gnulib] Patch proposal: 1-gary-safe-xfree.patch, Gary V. Vaughan, 2003/09/11
- Re: [Bug-gnulib] Patch proposal: 1-gary-safe-xfree.patch, Paul Eggert, 2003/09/12
- Re: [Bug-gnulib] Patch proposal: 1-gary-safe-xfree.patch, Jim Meyering, 2003/09/13
- Re: [Bug-gnulib] Patch proposal: 1-gary-safe-xfree.patch, Gary V. Vaughan, 2003/09/15
- Re: [Bug-gnulib] Patch proposal: 1-gary-safe-xfree.patch, Paul Eggert, 2003/09/15
- Re: [Bug-gnulib] Patch proposal: 1-gary-safe-xfree.patch, Gary V . Vaughan, 2003/09/16
- [Bug-gnulib] Re: Patch proposal: 1-gary-safe-xfree.patch, Simon Josefsson, 2003/09/16
- Re: [Bug-gnulib] Patch proposal: 1-gary-safe-xfree.patch, Bruno Haible, 2003/09/15
- Re: [Bug-gnulib] Patch proposal: 1-gary-safe-xfree.patch, Paul Eggert, 2003/09/15
- Re: [Bug-gnulib] Patch proposal: 1-gary-safe-xfree.patch,
Bruno Haible <=
- Re: [Bug-gnulib] Patch proposal: 1-gary-safe-xfree.patch, Gary V. Vaughan, 2003/09/19
- Re: [Bug-gnulib] Patch proposal: 1-gary-safe-xfree.patch, Paul Eggert, 2003/09/22
Re: [Bug-gnulib] Patch proposal: 1-gary-safe-xfree.patch, Gary V . Vaughan, 2003/09/11
Re: [Bug-gnulib] Patch proposal: 1-gary-safe-xfree.patch, Karl Berry, 2003/09/10