<malloc.h>: Restrict support for <malloc.h> to !defined(__STDC__).
authorSascha Wildner <saw@online.de>
Sat, 23 Feb 2013 18:48:32 +0000 (19:48 +0100)
committerSascha Wildner <saw@online.de>
Sat, 23 Feb 2013 18:48:32 +0000 (19:48 +0100)
commit1b3342693b737646f3cab0715e31ec6ab5216b38
tree5bc4b64dc24eaedf392854880ab37385e5c744c2
parent9cdfcdd588d8cae84b752e31adb7df8bd2f43d6e
<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.
gnu/lib/gcc47/libssp/config.h
include/malloc.h
lib/libedit/libedit/config.h
sys/sys/param.h
usr.bin/flex/config.h