diff options
Diffstat (limited to 'src/gallium/state_trackers/xvmc/tests/test_context.c')
-rw-r--r-- | src/gallium/state_trackers/xvmc/tests/test_context.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/gallium/state_trackers/xvmc/tests/test_context.c b/src/gallium/state_trackers/xvmc/tests/test_context.c index 1b9b0406790..344ac76decc 100644 --- a/src/gallium/state_trackers/xvmc/tests/test_context.c +++ b/src/gallium/state_trackers/xvmc/tests/test_context.c @@ -26,7 +26,8 @@ **************************************************************************/ #include <assert.h> -#include <error.h> +#include <stdio.h> +#include <stdlib.h> #include "testlib.h" int main(int argc, char **argv) @@ -58,7 +59,8 @@ int main(int argc, char **argv) )) { XCloseDisplay(display); - error(1, 0, "Error, unable to find a good port.\n"); + fprintf(stderr, "Error, unable to find a good port.\n"); + exit(1); } if (is_overlay) |