diff --git a/lib/drmtest.c b/lib/drmtest.c index 44fd30ee..75f49cd7 100644 --- a/lib/drmtest.c +++ b/lib/drmtest.c @@ -26,7 +26,11 @@ * */ +#ifndef ANDROID #define _GNU_SOURCE +#else +#include +#endif #include #include #include @@ -1007,7 +1011,7 @@ static bool run_under_gdb(void) sprintf(buf, "/proc/%d/exe", getppid()); return (readlink (buf, buf, sizeof (buf)) != -1 && - strncmp (basename (buf), "gdb", 3) == 0); + strncmp(basename(buf), "gdb", 3) == 0); } void __igt_fail_assert(int exitcode, const char *file,