git: Remove <malloc.h> from the system.

Sascha Wildner swildner at crater.dragonflybsd.org
Fri Nov 13 12:25:02 PST 2015


commit 02b66c54cac986a0bf93435b8d5ae1b17521515b
Author: Sascha Wildner <saw at online.de>
Date:   Fri Nov 13 18:24:00 2015 +0100

    Remove <malloc.h> from the system.
    
    Originally, I wanted to follow FreeBSD which errors if __STDC__ is
    defined and silently includes <stdlib.h>, which has the malloc()
    and friends prototypes, if it is not defined. The only case where
    __STDC__ isn't defined used to be when -traditional was passed to
    GCC, which used to attempt an emulation of a pre-standard compiler.
    But -traditional has since been made a cpp(1) specific option in
    newer releases of GCC, so it becomes more and more pointless to
    support <malloc.h>, even if we went with FreeBSD's version.
    
    Therefore, remove it completely.
    
    Also disable its usage in a number of contrib/ software which
    expected it due to its presence at the time when the software was
    configured.
    
    Suggested-by: marino, who also fixed the resultant dports breakage

Summary of changes:
 Makefile_upgrade.inc           | 1 +
 gnu/lib/gcc47/libssp/config.h  | 2 +-
 gnu/lib/gcc50/libitm/config.h  | 2 +-
 gnu/lib/gcc50/libssp/config.h  | 2 +-
 gnu/lib/libdialog/dlg_config.h | 1 -
 include/Makefile               | 2 +-
 include/malloc.h               | 5 -----
 sys/sys/param.h                | 3 ++-
 usr.bin/flex/config.h          | 2 +-
 usr.bin/ftp/tnftp_config.h     | 2 +-
 10 files changed, 9 insertions(+), 13 deletions(-)
 delete mode 100644 include/malloc.h

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/02b66c54cac986a0bf93435b8d5ae1b17521515b


-- 
DragonFly BSD source repository



More information about the Commits mailing list