Hash :
ed1fca92
Author :
Date :
2024-08-27T22:50:05
write-any-file: Don't reference an undefined function on native Windows. * m4/write-any-file.m4 (): Remove test for <priv.h>, obsolete since 2009-05-03. Test for geteuid. * lib/write-any-file.c (geteuid): Define a fallback.
# write-any-file.m4
# serial 2
dnl Copyright (C) 2007, 2009-2024 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
dnl with or without modifications, as long as this notice is preserved.
# Determine whether we can write any file.
# Written by Paul Eggert.
AC_DEFUN([gl_WRITE_ANY_FILE],
[
AC_CHECK_FUNCS_ONCE([geteuid])
])