summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/trace
diff options
context:
space:
mode:
authorJosé Fonseca <[email protected]>2010-02-03 11:06:23 +0000
committerJosé Fonseca <[email protected]>2010-02-03 11:06:23 +0000
commit630c375fe93abb7de8362cc4f092c4aa08d2fdc2 (patch)
tree0a2c69ff91c92e905d3c7d3d1ee7db91b40c885e /src/gallium/drivers/trace
parentaa8b49c9ca6b446e335bda4945e48107e5e4128a (diff)
trace: Include the appropriate header instead of defining prototypes.
Avoids header when the header was included before.
Diffstat (limited to 'src/gallium/drivers/trace')
-rw-r--r--src/gallium/drivers/trace/tr_rbug.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/trace/tr_rbug.c b/src/gallium/drivers/trace/tr_rbug.c
index 0546aad9b50..d66a75c6c87 100644
--- a/src/gallium/drivers/trace/tr_rbug.c
+++ b/src/gallium/drivers/trace/tr_rbug.c
@@ -46,7 +46,7 @@
#if defined(PIPE_SUBSYSTEM_WINDOWS_USER)
# define sleep Sleep
#elif defined(PIPE_OS_LINUX) || defined(PIPE_OS_APPLE)
-void usleep(int);
+# include <unistd.h>
# define sleep usleep
#else
# warning "No socket implementation"