From owner-freebsd-ports Fri Nov 26 23:48:14 1999 Delivered-To: freebsd-ports@freebsd.org Received: from ducky.net (gate.ducky.net [199.2.211.252]) by hub.freebsd.org (Postfix) with ESMTP id 4874414FCB for ; Fri, 26 Nov 1999 23:48:02 -0800 (PST) (envelope-from mike@ducky.net) Received: from ducky.net (localhost.ducky.net [127.0.0.1]) by ducky.net (8.9.1/8.8.5) with ESMTP id XAA21929 for ; Fri, 26 Nov 1999 23:47:14 -0800 (PST) Message-Id: <199911270747.XAA21929@ducky.net> To: freebsd-ports@freebsd.org Subject: patch for ports/net/vnc Date: Fri, 26 Nov 1999 23:47:14 -0800 From: Mike Haertel Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org The following patch is required to get Xvnc to compile properly under 4.0-CURRENT. It is very similar to a to a patch in ports/x11/XFree86. This patch causes imake to use "cc -E" instead of trying to run "cpp" manually. This is necessary because nowdays it is the "cc" driver, not /usr/libexec/cpp, that knows to define __FreeBSD__. --- Xvnc/config/imake/imakemdep.h~ Sat Jul 26 19:41:05 1997 +++ Xvnc/config/imake/imakemdep.h Fri Nov 26 23:21:33 1999 @@ -225,6 +225,9 @@ #ifdef hpux #define USE_CC_E #endif +#if defined(__FreeBSD__) +#define USE_CC_E +#endif #ifdef WIN32 #define USE_CC_E #define DEFAULT_CC "cl" @@ -253,7 +256,7 @@ #ifdef _CRAY #define DEFAULT_CPP "/lib/pcpp" #endif -#if defined(__386BSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__FreeBSD__) +#if defined(__386BSD__) || defined(__NetBSD__) || defined(__OpenBSD__) #define DEFAULT_CPP "/usr/libexec/cpp" #endif #if defined(__sgi) && defined(__ANSI_CPP__) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message