glib/tests: evade bionic libc polyfills for getpwuid

This helps build glib's tests and thus glib under termux on android.

Fixes: #3008
This commit is contained in:
Øyvind Kolås 2023-05-20 12:40:40 +02:00
parent 786f379d78
commit 9f7ed1fc37

View File

@ -25,6 +25,8 @@
#include <sys/types.h>
#include <unistd.h>
#undef getpwuid
static struct passwd my_pw;
/* This is used in gutils.c used to make sure utility functions