diff options
author | balrog <balrog@c046a42c-6fe2-441c-8c8c-71466251a162> | 2008-11-12 17:18:41 +0000 |
---|---|---|
committer | balrog <balrog@c046a42c-6fe2-441c-8c8c-71466251a162> | 2008-11-12 17:18:41 +0000 |
commit | eefec09f33a31e771ac7302962b2a893b12934c3 (patch) | |
tree | 74a189326988362d562b17b8899c4606c8a53407 /qemu-common.h | |
parent | 23f612b03fe9dfa2f933b12f8e318219544cfa9d (diff) | |
download | qemu-eefec09f33a31e771ac7302962b2a893b12934c3.tar.gz qemu-eefec09f33a31e771ac7302962b2a893b12934c3.tar.bz2 qemu-eefec09f33a31e771ac7302962b2a893b12934c3.zip |
Include <strings.h> for ffs().
ffs() is in <strings.h> although bsd compatible systems have it in
<string.h> already. ffs() is used in omap1.c, omap2.c, omap_i2c.c,
bt-sdp.c. These uses can be replaced with clz32() but ffs is more
available. Problem was spotted by malc.
Make host-utils.h formatting more consistent.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5708 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'qemu-common.h')
-rw-r--r-- | qemu-common.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/qemu-common.h b/qemu-common.h index b82741bc02..7831409fba 100644 --- a/qemu-common.h +++ b/qemu-common.h @@ -7,6 +7,7 @@ #include <stdio.h> #include <stdarg.h> #include <string.h> +#include <strings.h> #include <inttypes.h> #include <limits.h> #include <time.h> |