Skip to content

2.24.0 on NetBSD: build fails for undefined getuid() #888

Description

@moubctez

Probably other architectures are affected as well.

This patch fixes the problem:

--- va/va_internal.h.orig	2026-07-03 05:55:49.613855116 +0000
+++ va/va_internal.h
@@ -34,6 +34,7 @@ extern "C" {
 /* No setuid/setgid on Windows, secure_getenv is just getenv */
 #define secure_getenv getenv
 #else
+#include <unistd.h>
 static inline char * secure_getenv(const char *name)
 {
     if (getuid() == geteuid() && getgid() == getegid())

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions