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

Sascha Wildner swildner at
Sat Feb 23 10:52:31 PST 2013

commit 1b3342693b737646f3cab0715e31ec6ab5216b38
Author: Sascha Wildner <saw at>
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

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(-)

DragonFly BSD source repository

More information about the Commits mailing list