From: Alex Richardson Date: Mon, 8 Aug 2022 19:49:40 +0000 (+0000) Subject: test-utils-glib.c: Avoid using a non-portable errno value X-Git-Tag: dbus-1.15.0~14^2~15 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cf51eeb555dea1825b27a581b90f4bb5fc09759c;p=thirdparty%2Fdbus.git test-utils-glib.c: Avoid using a non-portable errno value ENODATA is not available on FreeBSD. Since the actual errno value here does not matter, use EPERM instead. This fixes the DBus build on FreeBSD. --- diff --git a/test/test-utils-glib.c b/test/test-utils-glib.c index bcd83d111..c6383af55 100644 --- a/test/test-utils-glib.c +++ b/test/test-utils-glib.c @@ -91,7 +91,7 @@ can_become_user_or_skip (uid_t uid) { /* make sure we report failure even if errno is wrong */ if (errno == 0) - errno = ENODATA; + errno = EPERM; _exit (errno); }