Bugzilla – Attachment 3624 Details for
Bug 3497
setresuid/setresgid configure check may need _GNU_SOURCE
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Fix setres*id tests to work with clang-16
openssh-setresid-gnu-source.patch (text/plain), 1.23 KB, created by
Darren Tucker
on 2022-11-07 10:30:12 AEDT
(
hide
)
Description:
Fix setres*id tests to work with clang-16
Filename:
MIME Type:
Creator:
Darren Tucker
Created:
2022-11-07 10:30:12 AEDT
Size:
1.23 KB
patch
obsolete
>diff --git a/configure.ac b/configure.ac >index 4bf758ac..e172540a 100644 >--- a/configure.ac >+++ b/configure.ac >@@ -863,7 +863,8 @@ int main(void) { if (NSVersionOfRunTimeLibrary("System") >= (60 << 16)) > check_for_openpty_ctty_bug=1 > dnl Target SUSv3/POSIX.1-2001 plus BSD specifics. > dnl _DEFAULT_SOURCE is the new name for _BSD_SOURCE >- CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=600 -D_BSD_SOURCE -D_DEFAULT_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" > AC_DEFINE([BROKEN_CLOSEFROM], [1], [broken in chroots on older kernels]) > AC_DEFINE([PAM_TTY_KLUDGE], [1], > [Work around problematic Linux PAM modules handling of PAM_TTY]) >@@ -2168,8 +2169,9 @@ AC_CHECK_FUNCS([setresuid], [ > AC_MSG_CHECKING([if setresuid seems to work]) > AC_RUN_IFELSE( > [AC_LANG_PROGRAM([[ >-#include <stdlib.h> > #include <errno.h> >+#include <stdlib.h> >+#include <unistd.h> > ]], [[ > errno=0; > setresuid(0,0,0); >@@ -2191,8 +2193,9 @@ AC_CHECK_FUNCS([setresgid], [ > AC_MSG_CHECKING([if setresgid seems to work]) > AC_RUN_IFELSE( > [AC_LANG_PROGRAM([[ >-#include <stdlib.h> > #include <errno.h> >+#include <stdlib.h> >+#include <unistd.h> > ]], [[ > errno=0; > setresgid(0,0,0);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 3497
:
3620
|
3621
|
3622
|
3623
| 3624