Date: Wed, 2 Jul 1997 22:43:32 -0700 (PDT) From: asami@cs.berkeley.edu (Satoshi Asami) To: obrien@FreeBSD.ORG Cc: cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG, cvs-ports@FreeBSD.ORG Subject: Re: cvs commit: ports/devel/omniORB/patches patch-aa Message-ID: <199707030543.WAA01086@silvia.HIP.Berkeley.EDU> In-Reply-To: <199706291213.FAA02342@freefall.freebsd.org> (obrien@FreeBSD.ORG)
next in thread | previous in thread | raw e-mail | index | archive | help
* Added {Open,Net}BSD to the #define's. * This was a stab in the dark as to the right things to do for them. Well, you just broke compilation for FreeBSD. ;) The following patch makes it compile again, but I'll leave it to you to figure out the "correct" fix. Satoshi ------- Index: patches/patch-aa =================================================================== RCS file: /usr/cvs/ports/devel/omniORB/patches/patch-aa,v retrieving revision 1.3 diff -u -r1.3 patch-aa --- patch-aa 1997/06/29 12:13:21 1.3 +++ patch-aa 1997/07/02 04:42:01 @@ -277,7 +277,7 @@ try { #ifdef __NT__ int fd = _open(active, O_WRONLY | O_CREAT | O_TRUNC, _S_IWRITE); -+ #elif defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__) ++ #elif defined(__FreeBSD__) + int fd = open(active, O_WRONLY | O_CREAT | O_TRUNC, 0666); #else int fd = open(active, O_WRONLY | O_CREAT | O_TRUNC | O_SYNC, 0666); @@ -288,7 +288,7 @@ #ifdef __NT__ int fd = _open(active, O_WRONLY | O_APPEND); -+ #elif defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__) ++ #elif defined(__FreeBSD__) + int fd = open(active, O_WRONLY | O_APPEND); #else int fd = open(active, O_WRONLY | O_APPEND | O_SYNC); @@ -299,7 +299,7 @@ #ifdef __NT__ int fd = _open(checkpt, O_WRONLY | O_CREAT | O_TRUNC, _S_IWRITE); -+ #elif defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__) ++ #elif defined(__FreeBSD__) + int fd = open(checkpt, O_WRONLY | O_CREAT | O_TRUNC, 0666); #else int fd = open(checkpt, O_WRONLY | O_CREAT | O_TRUNC | O_SYNC, 0666); @@ -310,7 +310,7 @@ #ifdef __NT__ fd = _open(active, O_WRONLY | O_APPEND); -+ #elif defined(__FreeBSD__) defined(__OpenBSD__) || defined(__NetBSD__) ++ #elif defined(__FreeBSD__) + fd = open(active, O_WRONLY | O_APPEND); #else fd = open(active, O_WRONLY | O_APPEND | O_SYNC);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199707030543.WAA01086>