diff options
author | asami <asami@FreeBSD.org> | 1997-07-10 15:37:00 +0800 |
---|---|---|
committer | asami <asami@FreeBSD.org> | 1997-07-10 15:37:00 +0800 |
commit | 95d2f5b72aae831b2757e8abf2cc18f669cab8ce (patch) | |
tree | 6f05c7340d82675744820600fc0962f9c67b8512 /devel | |
parent | 4ae115ad94559d2f56facc57da34321e40827d6c (diff) | |
download | freebsd-ports-gnome-95d2f5b72aae831b2757e8abf2cc18f669cab8ce.tar.gz freebsd-ports-gnome-95d2f5b72aae831b2757e8abf2cc18f669cab8ce.tar.zst freebsd-ports-gnome-95d2f5b72aae831b2757e8abf2cc18f669cab8ce.zip |
Put some parentheses in "#elif defined(foo) || defined(bar)" statement
to make this compile again. I never quite understood the "#elif"
syntax and now I think I never will.
By the way, this is just a patch-up to DavidO's "stab in the dark" and
is not guaranteed to work on NetBSD and/or OpenBSD. I just "fixed" it
in the way that it doesn't break FreeBSD while preserving the spirit
of his changes (i.e., to "stab" whatever he was aiming at).
Diffstat (limited to 'devel')
-rw-r--r-- | devel/omniORB/files/patch-aa | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/devel/omniORB/files/patch-aa b/devel/omniORB/files/patch-aa index b067f79ced6f..e690cd380457 100644 --- a/devel/omniORB/files/patch-aa +++ b/devel/omniORB/files/patch-aa @@ -6,7 +6,7 @@ diff -rc ./Makefile ../omniORB_2.2.0.freebsd/Makefile --- 1,7 ---- + # Makefile for omniORB2 + # -+ # $Id: patch-aa,v 1.2 1997/06/04 05:57:29 asami Exp $ ++ # $Id: patch-aa,v 1.3 1997/06/29 12:13:21 obrien Exp $ + + SUBDIR= src + @@ -139,7 +139,7 @@ diff -rc ./src/Makefile ../omniORB_2.2.0.freebsd/src/Makefile --- 1,7 ---- ! # Makefile for omniORB2 ! # -! # $Id: patch-aa,v 1.2 1997/06/04 05:57:29 asami Exp $ +! # $Id: patch-aa,v 1.3 1997/06/29 12:13:21 obrien Exp $ ! SUBDIR= tool lib appl examples @@ -277,7 +277,7 @@ diff -rc ./src/appl/omniNames/log.cc ../omniORB_2.2.0.freebsd/src/appl/omniNames 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__) || defined(__OpenBSD__) || defined(__NetBSD__)) + 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 @@ diff -rc ./src/appl/omniNames/log.cc ../omniORB_2.2.0.freebsd/src/appl/omniNames #ifdef __NT__ int fd = _open(active, O_WRONLY | O_APPEND); -+ #elif defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__) ++ #elif (defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__)) + int fd = open(active, O_WRONLY | O_APPEND); #else int fd = open(active, O_WRONLY | O_APPEND | O_SYNC); @@ -299,7 +299,7 @@ diff -rc ./src/appl/omniNames/log.cc ../omniORB_2.2.0.freebsd/src/appl/omniNames #ifdef __NT__ int fd = _open(checkpt, O_WRONLY | O_CREAT | O_TRUNC, _S_IWRITE); -+ #elif defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__) ++ #elif (defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__)) + 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 @@ diff -rc ./src/appl/omniNames/log.cc ../omniORB_2.2.0.freebsd/src/appl/omniNames #ifdef __NT__ fd = _open(active, O_WRONLY | O_APPEND); -+ #elif defined(__FreeBSD__) defined(__OpenBSD__) || defined(__NetBSD__) ++ #elif (defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__)) + fd = open(active, O_WRONLY | O_APPEND); #else fd = open(active, O_WRONLY | O_APPEND | O_SYNC); @@ -1744,7 +1744,7 @@ diff -rc ./src/tool/Makefile ../omniORB_2.2.0.freebsd/src/tool/Makefile --- 1,7 ---- ! # Makefile for omniORB2 ! # -! # $Id: patch-aa,v 1.2 1997/06/04 05:57:29 asami Exp $ +! # $Id: patch-aa,v 1.3 1997/06/29 12:13:21 obrien Exp $ ! SUBDIR= omniidl2 |