diff options
author | Mike Frysinger <vapier@gentoo.org> | 2021-01-04 20:11:48 -0500 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2021-01-04 20:13:10 -0500 |
commit | 9416af6e7d5d421b0c737d7f80afd67ce9926f11 (patch) | |
tree | fa47ab398240d1e0ed77ca9c57b2e0b029883087 /sim/bfin | |
parent | 9353bb9ed6ef1066850f31c6c8e1a40a7ca6763d (diff) | |
download | gdb-9416af6e7d5d421b0c737d7f80afd67ce9926f11.zip gdb-9416af6e7d5d421b0c737d7f80afd67ce9926f11.tar.gz gdb-9416af6e7d5d421b0c737d7f80afd67ce9926f11.tar.bz2 |
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.
Diffstat (limited to 'sim/bfin')
-rw-r--r-- | sim/bfin/ChangeLog | 4 | ||||
-rw-r--r-- | sim/bfin/dv-bfin_dma.c | 2 |
2 files changed, 6 insertions, 0 deletions
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 <vapier@gentoo.org> + + * dv-bfin_dma.c: Include stdlib.h. + 2021-01-02 Mike Frysinger <vapier@gentoo.org> * 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 <stdlib.h> + #include "sim-main.h" #include "devices.h" #include "hw-device.h" |