X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=cde%2Fprograms%2Fnsgmls%2FCmdLineApp.C;h=3dd4310fec270eef93980e6a861eb7f9c25befb6;hb=e5b3c011c64ab00cc00b771d203f8d1809ca846d;hp=4ba7cbcbce727c58b587f346d16ec60de046b525;hpb=205e26b3ef5d98c96101a44a1f3ee448da076e24;p=oweals%2Fcde.git diff --git a/cde/programs/nsgmls/CmdLineApp.C b/cde/programs/nsgmls/CmdLineApp.C index 4ba7cbcb..3dd4310f 100644 --- a/cde/programs/nsgmls/CmdLineApp.C +++ b/cde/programs/nsgmls/CmdLineApp.C @@ -16,7 +16,7 @@ * details. * * You should have received a copy of the GNU Lesser General Public - * License along with these librararies and programs; if not, write + * License along with these libraries and programs; if not, write * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth * Floor, Boston, MA 02110-1301 USA */ @@ -58,7 +58,7 @@ #include "ConsoleOutput.h" -#if defined(linux) || defined(CSRG_BASED) +#if defined(__linux__) || defined(CSRG_BASED) || defined(sun) #include #include using namespace std; @@ -292,7 +292,7 @@ Boolean CmdLineApp::openFilebufWrite(filebuf &file, return 0; return file.attach(fd) != 0; #else -#if defined(linux) || defined(CSRG_BASED) +#if defined(__linux__) || defined(CSRG_BASED) || defined(sun) return file.open(filename, ios::out|ios::trunc) != 0; #else return file.open(filename, ios::out|ios::trunc|IOS_BINARY) != 0;