Remove <malloc.h> from the system.
authorSascha Wildner <saw@online.de>
Fri, 13 Nov 2015 17:24:00 +0000 (18:24 +0100)
committerSascha Wildner <saw@online.de>
Fri, 13 Nov 2015 17:24:00 +0000 (18:24 +0100)
commit02b66c54cac986a0bf93435b8d5ae1b17521515b
tree46fe6582c2827fb37357caf29c26c792b2f12509
parentbe52293a8c9089b5524d68c870e446c94abe5b4c
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
Makefile_upgrade.inc
gnu/lib/gcc47/libssp/config.h
gnu/lib/gcc50/libitm/config.h
gnu/lib/gcc50/libssp/config.h
gnu/lib/libdialog/dlg_config.h
include/Makefile
include/malloc.h [deleted file]
sys/sys/param.h
usr.bin/flex/config.h
usr.bin/ftp/tnftp_config.h