diff options
author | José Fonseca <jfonseca@vmware.com> | 2011-12-09 20:05:27 +0000 |
---|---|---|
committer | José Fonseca <jfonseca@vmware.com> | 2011-12-09 20:17:34 +0000 |
commit | c83fb4d45f2a47042f395271efe6e5489b2c4aee (patch) | |
tree | b44fb9b937ba245ad1e5f45f50d7abfac077d6da /src/gallium | |
parent | f188c0d0f4c6a6920cd1d8040aceb9df007b5a23 (diff) |
util: Add strings.h include on unices
Fixes -Wimplicit-function-declaration for ffs with GCC. Spotted/tested
by Kai Wasserbäch.
Diffstat (limited to 'src/gallium')
-rw-r--r-- | src/gallium/auxiliary/util/u_math.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/util/u_math.h b/src/gallium/auxiliary/util/u_math.h index f908341f62..404bd21e1c 100644 --- a/src/gallium/auxiliary/util/u_math.h +++ b/src/gallium/auxiliary/util/u_math.h @@ -51,6 +51,10 @@ extern "C" { #include <math.h> #include <stdarg.h> +#ifdef PIPE_OS_UNIX +#include <strings.h> /* for ffs */ +#endif + #ifndef M_SQRT2 #define M_SQRT2 1.41421356237309504880 |