From 9416af6e7d5d421b0c737d7f80afd67ce9926f11 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Mon, 4 Jan 2021 20:11:48 -0500 Subject: sim: stdlib.h for abs() Make sure the files using abs() include stdlib.h for its prototype. These files were relying on it being included implicitly by others which isn't guaranteed, and newer toolchains produce warnings. --- sim/bfin/ChangeLog | 4 ++++ sim/bfin/dv-bfin_dma.c | 2 ++ 2 files changed, 6 insertions(+) (limited to 'sim/bfin') diff --git a/sim/bfin/ChangeLog b/sim/bfin/ChangeLog index d82bc5e..b000b82 100644 --- a/sim/bfin/ChangeLog +++ b/sim/bfin/ChangeLog @@ -1,3 +1,7 @@ +2021-01-04 Mike Frysinger + + * dv-bfin_dma.c: Include stdlib.h. + 2021-01-02 Mike Frysinger * interp.c: Change ALIGN to align_up. diff --git a/sim/bfin/dv-bfin_dma.c b/sim/bfin/dv-bfin_dma.c index 06fe5ed..e3834d7 100644 --- a/sim/bfin/dv-bfin_dma.c +++ b/sim/bfin/dv-bfin_dma.c @@ -20,6 +20,8 @@ #include "config.h" +#include + #include "sim-main.h" #include "devices.h" #include "hw-device.h" -- cgit v1.1