[openssh-commits] [openssh] branch V_9_8 updated: Fix detection of setres*id on GNU/Hurd
git+noreply at mindrot.org
git+noreply at mindrot.org
Wed Jul 3 19:27:23 AEST 2024
This is an automated email from the git hooks/post-receive script.
dtucker pushed a commit to branch V_9_8
in repository openssh.
The following commit(s) were added to refs/heads/V_9_8 by this push:
new 20950a7c Fix detection of setres*id on GNU/Hurd
20950a7c is described below
commit 20950a7c047ca08f9317d27866c06587ed51a338
Author: Samuel Thibault <samuel.thibault at ens-lyon.org>
AuthorDate: Tue Mar 26 22:15:08 2024 +0100
Fix detection of setres*id on GNU/Hurd
Like Linux, proper _SOURCE macros need to be set to get declarations of
various standard functions, notably setres*id. Now that Debian is using
-Werror=implicit-function-declaration this is really required. While at
it, define other _SOURCE macros like on GNU/Linux, since GNU/Hurd uses
the same glibc.
---
configure.ac | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/configure.ac b/configure.ac
index 5a865f8e..2eede34c 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1348,6 +1348,13 @@ EOD
AC_DEFINE([BROKEN_SETVBUF], [1],
[LynxOS has broken setvbuf() implementation])
;;
+*-*-gnu*)
+ dnl GNU Hurd. Needs to be after the linux and the other *-gnu entries.
+ dnl Target SUSv3/POSIX.1-2001 plus BSD specifics.
+ dnl _DEFAULT_SOURCE is the new name for _BSD_SOURCE
+ dnl _GNU_SOURCE is needed for setres*id prototypes.
+ CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=600 -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_GNU_SOURCE"
+ ;;
esac
AC_MSG_CHECKING([compiler and flags for sanity])
--
To stop receiving notification emails like this one, please contact
djm at mindrot.org.
More information about the openssh-commits
mailing list