michael@34: Index: Configure michael@34: --- Configure.orig 2008-04-15 15:24:36 +0200 michael@34: +++ Configure 2008-04-16 08:19:20 +0200 michael@36: @@ -417,7 +417,7 @@ michael@34: fi # } michael@34: fi # } michael@34: LSOF_TGT="aix" michael@34: - echo $LSOF_CC | grep gcc > /dev/null michael@34: + $LSOF_CC --version | grep GCC > /dev/null michael@34: if test $? -eq 0 # { michael@34: then michael@34: michael@36: @@ -571,7 +571,7 @@ michael@34: michael@34: rm -f dialects/aix/aix5/j2/j2_snapshot.h michael@34: fi # } michael@34: - echo $LSOF_CC | grep gcc > /dev/null michael@34: + $LSOF_CC --version | grep GCC > /dev/null michael@34: if test $? -eq 0 # { michael@34: then michael@34: michael@36: @@ -609,7 +609,7 @@ michael@34: # This is AIX >= 5 on ia64. michael@34: michael@34: LSOF_TSTK64=1 michael@34: - echo $LSOF_CC | grep gcc > /dev/null michael@34: + $LSOF_CC --version | grep GCC > /dev/null michael@34: if test $? -eq 0 # { michael@34: then michael@34: michael@36: @@ -686,7 +686,7 @@ michael@34: fi # } michael@34: LSOF_TSTK64=1 michael@34: LSOF_TMP1=1 michael@34: - echo $LSOF_CC | grep gcc > /dev/null michael@34: + $LSOF_CC --version | grep GCC > /dev/null michael@34: if test $? -eq 0 # { michael@34: then michael@34: LSOF_CFGF="$LSOF_CFGF -maix64" michael@36: @@ -733,7 +733,7 @@ michael@34: fi #} michael@34: LSOF_CFGF="$LSOF_CFGF -DAIXV=$LSOF_VERS" michael@34: LSOF_DIALECT_DIR=aix michael@34: - echo $LSOF_CC | grep gcc > /dev/null michael@34: + $LSOF_CC --version | grep GCC > /dev/null michael@34: if test $? -eq 0 # { michael@34: then michael@34: michael@36: @@ -2134,7 +2134,7 @@ michael@34: fi # } michael@34: fi # } michael@34: fi # } michael@34: - echo $LSOF_CC | grep gcc > /dev/null michael@34: + $LSOF_CC --version | grep GCC > /dev/null michael@34: if test $? -eq 0 # { michael@34: then michael@34: LSOF_CCV=`$LSOF_CC -v 2>&1 | sed -n 's/.*version \(.*\)/\1/p'` michael@36: @@ -2188,7 +2188,7 @@ michael@34: then michael@34: LSOF_CFGF="$LSOF_CFGF -Ae +DD32" michael@34: else michael@34: - echo $LSOF_CC | grep -q gcc michael@34: + $LSOF_CC --version | grep -q GCC michael@34: if test $? -ne 0 # { michael@34: then michael@34: LSOF_CFGF="$LSOF_CFGF +DD32" michael@36: @@ -2272,7 +2272,7 @@ michael@34: echo "* NOTICE! Configuring for 64 bit HP-UX *" michael@34: echo "* *" michael@34: echo "*****************************************" michael@34: - echo $LSOF_CC | grep gcc > /dev/null michael@34: + $LSOF_CC --version | grep GCC > /dev/null michael@34: if test $? -eq 0 # { michael@34: then michael@34: michael@36: @@ -2341,7 +2341,7 @@ michael@34: else michael@34: LSOF_CFGF="$LSOF_CFGF -D_FILE_OFFSET_BITS=64" michael@34: LSOF_CINFO="${LSOF_CINFO}, 32 bit HP-UX" michael@34: - echo $LSOF_CC | grep gcc > /dev/null michael@34: + $LSOF_CC --version | grep GCC > /dev/null michael@34: if test $? -ne 0 # { michael@34: then michael@34: LSOF_CFGF="$LSOF_CFGF +DAportable" michael@36: @@ -3550,7 +3550,7 @@ michael@34: LSOF_CCV=`$LSOF_CC -v 2>&1 | sed -n 's/.*version \(.*\)/\1/p'` michael@34: fi # } michael@34: fi # } michael@34: - echo $LSOF_CC | grep gcc > /dev/null michael@34: + $LSOF_CC --version | grep GCC > /dev/null michael@34: if test $? -eq 0 # { michael@34: then michael@34: LSOF_CFGL="-w" michael@36: @@ -4187,6 +4187,17 @@ michael@34: LSOF_TSTBIGF=" " michael@34: LSOF_TSTLFLG="-lsocket -lnsl" michael@34: LSOF_VERS="100000" michael@34: + if [ ".`isainfo -k`" = .amd64 ]; then michael@34: + LSOF_CFGL="$LSOF_CFGL -lmp -lmd5 -lscf -ldoor -luutil" michael@34: + fi michael@36: + ;; michael@36: + 5.11*) michael@36: + LSOF_TSTBIGF=" " michael@36: + LSOF_TSTLFLG="-lsocket -lnsl" michael@36: + LSOF_VERS="110000" michael@36: + if [ ".`isainfo -k`" = .amd64 ]; then michael@36: + LSOF_CFGL="$LSOF_CFGL -lmp -lmd5 -lscf -ldoor -luutil" michael@36: + fi michael@34: ;; michael@34: *) michael@34: echo Unknown Solaris version: $LSOF_VSTR michael@36: @@ -4264,7 +4275,7 @@ michael@36: ;; michael@36: 20500|20501) michael@36: ;; michael@36: - 20600|70000|80000|90000|100000) michael@36: + 20600|70000|80000|90000|100000|110000) michael@36: if test "X$SOLARIS_26PR_GWINDOWS" = "X" # { michael@36: then michael@36: rm -f ${LSOF_TMPC}.* michael@36: @@ -4273,7 +4284,7 @@ michael@34: echo "main(){" >> ${LSOF_TMPC}.c michael@34: echo "enum prnodetype p=PR_GWINDOWS;}" >> ${LSOF_TMPC}.c michael@34: echo "Testing prdata.h for PR_GWINDOWS, using $LSOF_CC" michael@34: - echo $LSOF_CC | grep gcc > /dev/null michael@34: + $LSOF_CC --version | grep GCC > /dev/null michael@34: if test $? -eq 0 # { michael@34: then michael@34: $LSOF_CC ${LSOF_TMPC}.c -o ${LSOF_TMPC}.x > /dev/null 2>&1 michael@36: @@ -4298,7 +4309,7 @@ michael@34: echo "main(){" >> ${LSOF_TMPC}.c michael@34: echo "enum prnodetype p=PR_LDT;}" >> ${LSOF_TMPC}.c michael@34: echo "Testing prdata.h for PR_LDT, using $LSOF_CC" michael@34: - echo $LSOF_CC | grep gcc > /dev/null michael@34: + $LSOF_CC --version | grep GCC > /dev/null michael@34: if test $? -eq 0 # { michael@34: then michael@34: $LSOF_CC ${LSOF_TMPC}.c -o ${LSOF_TMPC}.x > /dev/null 2>&1 michael@36: @@ -4328,7 +4339,7 @@ michael@34: echo $SOLARIS_KERNBITS | grep 64 > /dev/null michael@34: if test $? -eq 0 # { michael@34: then michael@34: - echo $LSOF_CC | grep gcc > /dev/null michael@34: + $LSOF_CC --version | grep GCC > /dev/null michael@34: if test $? -eq 0 # { michael@34: then michael@34: michael@36: @@ -4532,7 +4543,7 @@ michael@34: michael@34: # Check for Solaris 10 or higher ZFS. michael@34: michael@34: - if test -r ${LSOF_INCLUDE}/sys/fs/zfs.h # { michael@34: + if false # { michael@34: then michael@34: LSOF_TMP1="dmu.h zfs_acl.h zfs_debug.h zfs_rlock.h zil.h spa.h zfs_context.h zfs_dir.h zfs_vfsops.h zio.h txg.h zfs_ctldir.h zfs_ioctl.h zfs_znode.h zio_impl.h" michael@34: LSOF_TMP2="" michael@36: @@ -4615,7 +4626,7 @@ michael@34: echo "main(){" >> ${LSOF_TMPC}.c michael@34: echo "enum vtype p=VSOCK;}" >> ${LSOF_TMPC}.c michael@34: echo "Testing vnode.h for VSOCK, using $LSOF_CC" michael@34: - echo $LSOF_CC | grep gcc > /dev/null michael@34: + $LSOF_CC --version | grep GCC > /dev/null michael@34: if test $? -eq 0 # { michael@34: then michael@34: $LSOF_CC ${LSOF_TMPC}.c -o ${LSOF_TMPC}.x > /dev/null 2>&1 michael@36: @@ -5295,7 +5306,7 @@ michael@34: echo "$i" >> $LSOF_TSTCFLG michael@34: done # } michael@34: fi # } michael@34: -echo $LSOF_CC | grep gcc > /dev/null 2>&1 michael@34: +$LSOF_CC --version | grep GCC > /dev/null 2>&1 michael@34: if test $? -eq 0 # { michael@34: then michael@34: echo "-DLT_GCC" >> $LSOF_TSTCFLG michael@36: Index: dialects/sun/dnode.c michael@36: --- dialects/sun/dnode.c.orig 2008-10-21 18:16:45.000000000 +0200 michael@36: +++ dialects/sun/dnode.c 2009-01-08 01:59:20.609120000 +0100 michael@36: @@ -85,6 +85,8 @@ michael@36: #define LOOKDEV_ALL (LOOKDEV_TAB | LOOKDEV_CLONE | LOOKDEV_PSEUDO) michael@36: /* look all places */ michael@36: michael@36: +#define NOOP ((void)0) michael@36: + michael@36: michael@36: /* michael@36: * SAM-FS definitions michael@36: @@ -2065,7 +2067,9 @@ michael@36: if (kvs && kv.vfs_data michael@36: && !kread((KA_T)kv.vfs_data, (char *)&pcfs, sizeof(pcfs))) { michael@36: michael@36: -#if solaris>=70000 michael@36: +#if solaris>=110000 /* pcfs_entps doesn't exist any more */ michael@36: + NOOP; michael@36: +#elif solaris>=70000 michael@36: Lf->inode = (INODETYPE)pc_makenodeid(pc.pc_eblkno, michael@36: pc.pc_eoffset, michael@36: pc.pc_entry.pcd_attr, michael@36: @@ -2079,7 +2083,7 @@ michael@36: pc.pc_eoffset, michael@36: &pc.pc_entry, michael@36: pcfs.pcfs_entps); michael@36: -#endif /* solaris>=70000 */ michael@36: +#endif /* solaris>=110000 */ michael@36: michael@36: Lf->inp_ty = 1; michael@36: } michael@34: Index: dialects/freebsd/machine.h michael@34: --- dialects/freebsd/machine.h.orig 2006-03-28 01:29:14 +0200 michael@34: +++ dialects/freebsd/machine.h 2008-04-16 08:17:46 +0200 michael@36: @@ -441,6 +441,11 @@ michael@34: */ michael@34: michael@34: /* #define HASSECURITY 1 */ michael@34: +#if FREEBSDV>=6000 michael@34: +#define HASSECURITY 1 michael@34: +#define HAS_SI_PRIV 1 michael@34: +#endif /* FREEBSDV>=6000 */ michael@34: + michael@34: michael@34: michael@34: /* michael@34: Index: dialects/sun/machine.h michael@34: --- dialects/sun/machine.h.orig 2007-04-24 18:23:25 +0200 michael@34: +++ dialects/sun/machine.h 2008-04-16 08:17:46 +0200 michael@34: @@ -75,6 +75,7 @@ michael@34: #include michael@34: michael@34: # if solaris>=80000 michael@34: +#include michael@34: #include michael@34: #include michael@34: #define _KERNEL 1 michael@36: Index: proc.c michael@36: --- proc.c.orig 2008-10-21 18:22:05.000000000 +0200 michael@36: +++ proc.c 2009-01-08 01:13:31.388963909 +0100 michael@36: @@ -841,8 +841,6 @@ michael@36: { michael@36: if (Lf->sf & SELEXCLF) michael@36: return; michael@36: - if (((Selflags & SELNET) == SELNET) && !(Lf->sf & SELNET)) michael@36: - return; michael@36: Lp->pss |= PS_SEC; michael@36: if (Plf) michael@36: Plf->next = Lf;