summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@sun.com>2009-09-11 11:21:26 -0700
committerAlan Coopersmith <alan.coopersmith@sun.com>2009-09-11 11:21:26 -0700
commit8fb3fa28a5a1b36cdaad38055a607400828b9e1c (patch)
tree562cd682a1dede421d7f53d53508c4894a46395b
parentd908ee6e549fd8ff653e2c58e9637df347540ef9 (diff)
compiler.h: include <string.h> before using memmove()
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
-rw-r--r--hw/xfree86/common/compiler.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/hw/xfree86/common/compiler.h b/hw/xfree86/common/compiler.h
index 95ef72c39..cdb493a23 100644
--- a/hw/xfree86/common/compiler.h
+++ b/hw/xfree86/common/compiler.h
@@ -263,6 +263,8 @@ static __inline__ void stw_u(uint16_t val, uint16_t *p)
}
# else /* !__GNUC__ */
+#include <string.h> /* needed for memmove */
+
static __inline__ uint64_t ldq_u(uint64_t *p)
{
uint64_t ret;