ioutil: make the file compile on MacOS
commit6f65045b3791525e99d09d07b5f9d8dd5aa511e5
authorEdgar Grimberg <edgar.grimberg@gmail.com>
Wed, 17 Oct 2012 22:27:02 +0000 (18 00:27 +0200)
committerPeter Stuge <peter@stuge.se>
Sun, 28 Oct 2012 01:38:58 +0000 (28 01:38 +0000)
tree97066487984b7b2cb97e78bc445f27070645ceea
parent077d77140ca7aaff3f301c33f20f3831d0913c11
ioutil: make the file compile on MacOS

The meminfo command cannot exist if the malloc.h header is not
present.
Cannot get the mac address without sys/ioctl.h and SIOCGIFHWADDR
defined

Change-Id: Ifc0fb98c3a60c53ad2e19473e08b34c460529d0b
Signed-off-by: Edgar Grimberg <edgar.grimberg@gmail.com>
Reviewed-on: http://openocd.zylin.com/912
Tested-by: jenkins
Reviewed-by: Øyvind Harboe <oyvindharboe@gmail.com>
Reviewed-by: Peter Stuge <peter@stuge.se>
src/helper/ioutil.c