Bugzilla – Attachment 710 Details for
Bug 321
configure does not work when cross compiling
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Add cross-compile support to the setres[ug]id test
configure.patch (text/plain), 1.36 KB, created by
Darren Tucker
on 2004-09-07 21:37:59 AEST
(
hide
)
Description:
Add cross-compile support to the setres[ug]id test
Filename:
MIME Type:
Creator:
Darren Tucker
Created:
2004-09-07 21:37:59 AEST
Size:
1.36 KB
patch
obsolete
>Index: configure.ac >=================================================================== >RCS file: /usr/local/src/security/openssh/cvs/openssh_cvs/configure.ac,v >retrieving revision 1.228 >diff -u -p -r1.228 configure.ac >--- configure.ac 29 Aug 2004 11:18:09 -0000 1.228 >+++ configure.ac 7 Sep 2004 11:36:29 -0000 >@@ -895,28 +895,30 @@ AC_CHECK_DECLS(h_errno, , ,[#include <ne > AC_CHECK_FUNCS(setresuid, [ > dnl Some platorms have setresuid that isn't implemented, test for this > AC_MSG_CHECKING(if setresuid seems to work) >- AC_TRY_RUN([ >+ AC_RUN_IFELSE([ > #include <stdlib.h> > #include <errno.h> > int main(){errno=0; setresuid(0,0,0); if (errno==ENOSYS) exit(1); else exit(0);} > ], > [AC_MSG_RESULT(yes)], > [AC_DEFINE(BROKEN_SETRESUID) >- AC_MSG_RESULT(not implemented)] >+ AC_MSG_RESULT(not implemented)], >+ [AC_MSG_WARN([cross compiling: not checking setresuid])] > ) > ]) > > AC_CHECK_FUNCS(setresgid, [ > dnl Some platorms have setresgid that isn't implemented, test for this > AC_MSG_CHECKING(if setresgid seems to work) >- AC_TRY_RUN([ >+ AC_TRY_IFELSE([ > #include <stdlib.h> > #include <errno.h> > int main(){errno=0; setresgid(0,0,0); if (errno==ENOSYS) exit(1); else exit(0);} > ], > [AC_MSG_RESULT(yes)], > [AC_DEFINE(BROKEN_SETRESGID) >- AC_MSG_RESULT(not implemented)] >+ AC_MSG_RESULT(not implemented)], >+ [AC_MSG_WARN([cross compiling: not checking setresuid])] > ) > ]) >
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
Flags:
djm
:
ok+
Actions:
View
|
Diff
Attachments on
bug 321
:
123
|
124
|
655
|
656
|
657
| 710