Bugzilla – Attachment 1650 Details for
Bug 1607
compile errors buliding OpenSSH for older Red Hat
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Handle __val, attempt 2
openssh-fsid.__val2.patch (text/plain), 2.14 KB, created by
Darren Tucker
on 2009-06-13 16:49:48 AEST
(
hide
)
Description:
Handle __val, attempt 2
Filename:
MIME Type:
Creator:
Darren Tucker
Created:
2009-06-13 16:49:48 AEST
Size:
2.14 KB
patch
obsolete
>Index: configure.ac >=================================================================== >RCS file: /home/dtucker/openssh/cvs/openssh/configure.ac,v >retrieving revision 1.419 >diff -u -p -r1.419 configure.ac >--- configure.ac 18 Mar 2009 18:25:02 -0000 1.419 >+++ configure.ac 12 Jun 2009 23:22:08 -0000 >@@ -3080,15 +3080,41 @@ if test "x$ac_cv_have_accrights_in_msghd > file descriptor passing]) > fi > >-AC_MSG_CHECKING(if f_fsid has val members) >+AC_MSG_CHECKING(if struct statvfs.f_fsid is integral type) > AC_TRY_COMPILE([ > #include <sys/types.h> >+#include <sys/stat.h> >+#ifdef HAVE_SYS_TIME_H >+# include <sys/time.h> >+#endif >+#ifdef HAVE_SYS_MOUNT_H >+#include <sys/mount.h> >+#endif >+#ifdef HAVE_SYS_STATVFS_H >+#include <sys/statvfs.h> >+#endif >+], [struct statvfs s; s.f_fsid = 0;], >+[ AC_MSG_RESULT(yes) ], >+[ AC_MSG_RESULT(no) >+ >+ AC_MSG_CHECKING(if fsid_t has member val) >+ AC_TRY_COMPILE([ >+#include <sys/types.h> > #include <sys/statvfs.h>], >-[struct fsid_t t; t.val[0] = 0;], >+ [fsid_t t; t.val[0] = 0;], > [ AC_MSG_RESULT(yes) >- AC_DEFINE(FSID_HAS_VAL, 1, f_fsid has members) ], >- [ AC_MSG_RESULT(no) ] >-) >+ AC_DEFINE(FSID_HAS_VAL, 1, fsid_t has member val) ], >+ [ AC_MSG_RESULT(no) ]) >+ >+ AC_MSG_CHECKING(if f_fsid has member __val) >+ AC_TRY_COMPILE([ >+#include <sys/types.h> >+#include <sys/statvfs.h>], >+ [fsid_t t; t.__val[0] = 0;], >+ [ AC_MSG_RESULT(yes) >+ AC_DEFINE(FSID_HAS___VAL, 1, fsid_t has member __val) ], >+ [ AC_MSG_RESULT(no) ]) >+]) > > AC_CACHE_CHECK([for msg_control field in struct msghdr], > ac_cv_have_control_in_msghdr, [ >Index: defines.h >=================================================================== >RCS file: /home/dtucker/openssh/cvs/openssh/defines.h,v >retrieving revision 1.154 >diff -u -p -r1.154 defines.h >--- defines.h 7 Mar 2009 01:32:22 -0000 1.154 >+++ defines.h 12 Jun 2009 23:09:45 -0000 >@@ -594,6 +594,10 @@ struct winsize { > #define FSID_TO_ULONG(f) \ > ((((u_int64_t)(f).val[0] & 0xffffffffUL) << 32) | \ > ((f).val[1] & 0xffffffffUL)) >+#elif defined(FSID_HAS___VAL) >+#define FSID_TO_ULONG(f) \ >+ ((((u_int64_t)(f).__val[0] & 0xffffffffUL) << 32) | \ >+ ((f).__val[1] & 0xffffffffUL)) > #else > # define FSID_TO_ULONG(f) ((f)) > #endif
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 1607
:
1649
| 1650