DragonFly BSD
DragonFly commits List (threaded) for 2013-02
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

git: <malloc.h>: Restrict support for <malloc.h> to !defined(__STDC__).


From: Sascha Wildner <swildner@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Sat, 23 Feb 2013 10:52:31 -0800 (PST)

commit 1b3342693b737646f3cab0715e31ec6ab5216b38
Author: Sascha Wildner <saw@online.de>
Date:   Sat Feb 23 19:48:32 2013 +0100

    <malloc.h>: Restrict support for <malloc.h> to !defined(__STDC__).
    
    In essence this is what FreeBSD did: error if __STDC__ is defined, and
    silently include <stdlib.h> if not.
    
    Packages are expected to now fail their config checks for <malloc.h>
    but to build nevertheless, which was confirmed with building ~500
    packages as a test.
    
    Adjust a few config.h files of contrib/ code as well, notably
    libssp's, which gets rid of the malloc.h warnings from the buildworld
    output.

Summary of changes:
 gnu/lib/gcc47/libssp/config.h | 2 +-
 include/malloc.h              | 8 ++++----
 lib/libedit/libedit/config.h  | 2 +-
 sys/sys/param.h               | 5 +++--
 usr.bin/flex/config.h         | 2 +-
 5 files changed, 10 insertions(+), 9 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/1b3342693b737646f3cab0715e31ec6ab5216b38


-- 
DragonFly BSD source repository



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