diff options
author | cy <cy@FreeBSD.org> | 2010-01-29 13:23:15 +0800 |
---|---|---|
committer | cy <cy@FreeBSD.org> | 2010-01-29 13:23:15 +0800 |
commit | a90d2b02f92945da0890099adcce1a54045c7706 (patch) | |
tree | a4688ba0f9f56725d9d2a7c8571148c4880617eb /comms/conserver | |
parent | f02ec2a46a1f4a280341bf2659bcec89a8d22e2f (diff) | |
download | freebsd-ports-gnome-a90d2b02f92945da0890099adcce1a54045c7706.tar.gz freebsd-ports-gnome-a90d2b02f92945da0890099adcce1a54045c7706.tar.zst freebsd-ports-gnome-a90d2b02f92945da0890099adcce1a54045c7706.zip |
Make conserver build under RELENG_8 (800044).
Diffstat (limited to 'comms/conserver')
-rw-r--r-- | comms/conserver/files/patch-etc-autologin-autologin.c | 8 | ||||
-rw-r--r-- | comms/conserver/files/patch-etc-autologin-machine.h | 20 |
2 files changed, 14 insertions, 14 deletions
diff --git a/comms/conserver/files/patch-etc-autologin-autologin.c b/comms/conserver/files/patch-etc-autologin-autologin.c index ed99ad30f148..e5109dcbcab8 100644 --- a/comms/conserver/files/patch-etc-autologin-autologin.c +++ b/comms/conserver/files/patch-etc-autologin-autologin.c @@ -1,5 +1,5 @@ --- etc/autologin/autologin.c.orig 2000-08-02 11:39:42.000000000 -0700 -+++ etc/autologin/autologin.c 2010-01-27 21:58:21.000000000 -0800 ++++ etc/autologin/autologin.c 2010-01-28 21:04:23.000000000 -0800 @@ -23,7 +23,15 @@ #include <pwd.h> #include <grp.h> @@ -33,7 +33,7 @@ /* NOTREACHED */ } #endif -+#if defined(__FreeBSD_version) && __FreeBSD_version > 900007 ++#ifdef __FreeBSD_version + /* XXX: FreeBSD does not support IUCLC, translate uppercase characters + to lowercase */ + n_tio.c_iflag &= ~(IGNCR); @@ -41,7 +41,7 @@ n_tio.c_iflag &= ~(IGNCR|IUCLC); +#endif n_tio.c_iflag |= ICRNL|IXON|IXANY; -+#if defined(__FreeBSD_version) && __FreeBSD_version > 900007 ++#ifdef __FreeBSD_version + /* + XXX: FreeBSD does not support OLCUC, translater lowercase + to uppercase @@ -56,7 +56,7 @@ n_tio.c_oflag &= ~(OLCUC|ONOCR|ONLRET|OFILL|NLDLY|CRDLY|TABDLY|BSDLY); +#endif n_tio.c_oflag |= OPOST|ONLCR|TAB3; -+#if defined(__FreeBSD_version) && __FreeBSD_version > 900007 ++#ifdef __FreeBSD_version + /* XXX: FreeBSD does not support XCASE, with icanon, escape with '\' + for uppercase characters */ + n_tio.c_lflag &= ~(NOFLSH|ECHOK|ECHONL); diff --git a/comms/conserver/files/patch-etc-autologin-machine.h b/comms/conserver/files/patch-etc-autologin-machine.h index 49af900a4e69..96e622d1cded 100644 --- a/comms/conserver/files/patch-etc-autologin-machine.h +++ b/comms/conserver/files/patch-etc-autologin-machine.h @@ -1,5 +1,5 @@ --- etc/autologin/machine.h.orig 2000-08-02 11:39:42.000000000 -0700 -+++ etc/autologin/machine.h 2010-01-27 20:58:40.000000000 -0800 ++++ etc/autologin/machine.h 2010-01-28 21:01:18.000000000 -0800 @@ -1,7 +1,6 @@ /* $Id: machine.h,v 2.8 1997/11/10 17:10:34 ksb Exp $ * leverage in liew of L7 @@ -18,7 +18,7 @@ #if !defined(USE_UTENT) -#define USE_UTENT (defined(SUN5)||defined(EPIX)||defined(PARAGON)||defined(IBMR2)||defined(HPUX9)||defined(HPUX10)||defined(LINUX)) -+#define USE_UTENT (defined(SUN5)||defined(EPIX)||defined(PARAGON)||defined(IBMR2)||defined(HPUX9)||defined(HPUX10)||defined(LINUX))||defined(__FreeBSD_version) && __FreeBSD_version > 900007 ++#define USE_UTENT (defined(SUN5)||defined(EPIX)||defined(PARAGON)||defined(IBMR2)||defined(HPUX9)||defined(HPUX10)||defined(LINUX)||(defined(__FreeBSD_version) && (__FreeBSD_version > 900007))) #endif #if !defined(NEED_PUTENV) @@ -27,7 +27,7 @@ #endif #if !defined(USE_TERMIOS) -#define USE_TERMIOS (defined(HPUX)||defined(SUN5)||defined(PTX)||defined(IRIX5)||defined(LINUX)) -+#define USE_TERMIOS (defined(HPUX)||defined(SUN5)||defined(PTX)||defined(IRIX5)||defined(LINUX))||(defined(__FreeBSD_version) && __FreeBSD_version > 900007) ++#define USE_TERMIOS (defined(HPUX)||defined(SUN5)||defined(PTX)||defined(IRIX5)||defined(LINUX)||(defined(__FreeBSD_version) && ((__FreeBSD_version >= 800044 && __FreeBSD_version < 900000) || __FreeBSD_version > 900007))) #endif #if !defined(USE_TCBREAK) #define USE_TCBREAK (defined(SUN4)||defined(PTX)) @@ -36,7 +36,7 @@ #if !defined(USE_TC) -#define USE_TC (defined(EPIX)||defined(IBMR2)||defined(V386)||defined(S81)||defined(PARAGON)) -+#define USE_TC (defined(EPIX)||defined(IBMR2)||defined(V386)||defined(S81)||defined(PARAGON)||(defined(__FreeBSD_version) && __FreeBSD_version > 900007)) ++#define USE_TC (defined(EPIX)||defined(IBMR2)||defined(V386)||defined(S81)||defined(PARAGON)||(defined(__FreeBSD_version) && (__FreeBSD_version >= 800044 && __FreeBSD_version < 900000) || __FreeBSD_version > 900007)) #endif #if !defined(HAVE_GETUSERATTR) @@ -45,29 +45,29 @@ #if !defined(USE_IOCTL) -#define USE_IOCTL (defined(V386)||defined(S81)||defined(NETBSD)||defined(FREEBSD)) -+#define USE_IOCTL (defined(V386)||defined(S81)||defined(NETBSD)||(defined(FREEBSD)&&(defined(__FreeBSD_version) && __FreeBSD_version < 900008))) ++#define USE_IOCTL (defined(V386)||defined(S81)||defined(NETBSD)||(defined(FREEBSD)&&(defined(__FreeBSD_version) && (__FreeBSD_version < 800044 || (__FreeBSD_version >= 900000 &&__FreeBSD_version < 900008))))) #endif -@@ -127,8 +126,12 @@ +@@ -127,8 +126,11 @@ #if FREEBSD #include <sys/uio.h> #include <sys/proc.h> -+#if defined(__FreeBSD_version) && __FreeBSD_version > 900007 ++#if defined(__FreeBSD_version) && ((__FreeBSD_version >= 800044 && __FreeBSD_version < 900000) || __FreeBSD_version > 900007) +#include <termios.h> +#else #include <sys/ioctl_compat.h> - #define setsid() getpid() +-#define setsid() getpid() +#endif #else #endif /* NETBSD */ -@@ -148,7 +151,7 @@ +@@ -148,7 +150,7 @@ #if HPUX #define HAVE_GETSID (defined(HPUX10)||defined(LINUX)) #else -#if PARAGON || SUNOS || SUN4 || SUN5 || NETBSD || S81 || V386 || IBMR2 || EPIX -+#if PARAGON || SUNOS || SUN4 || SUN5 || NETBSD || S81 || V386 || IBMR2 || EPIX || defined(__FreeBSD_version) && __FreeBSD_version > 900007 ++#if PARAGON || SUNOS || SUN4 || SUN5 || NETBSD || S81 || V386 || IBMR2 || EPIX || FREEBSD #define HAVE_GETSID 1 #else #define HAVE_GETSID 0 |