public inbox for java-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: Andreas Tobler <toa@pop.agri.ch>
To: Java Patches <java-patches@gcc.gnu.org>
Subject: [patch] include/posix.h
Date: Fri, 19 May 2006 22:16:00 -0000	[thread overview]
Message-ID: <446E43A3.3080507@pop.agri.ch> (raw)

Hello all,

to complete the HP-UX PA port we need to modify the file in the subject.

We conflict with the gcj/javaprims.h and the Boolean.h when we compile 
java/net/natVMNetworkInterfacePosix.cc

The reason comes from the system header sys/rw_lock.h:

-----


/*
  * For source compatibility, need to continue defining TRUE and FALSE for
  * user-level applications. Although this file defines a kernel only 
service,
  * some user-level applications are indirectly including this file and
  * depending on the defines for TRUE and FALSE. These defines need to
  * remain until all the user-level issues have been handled.
  */
#ifndef _KERNEL
#ifndef TRUE
#define TRUE    1
#define FALSE   0
#else
#if ((TRUE != 1) || (FALSE != 0))
This is probably not a good thing....
#endif
#endif /* !TRUE */

-----

Do you have a better idea or is the below ok?

Thanks,
Andreas


2006-05-20  Andreas Tobler  <a.tobler@schweiz.ch>

	* include/posix.h: Undefine TRUE and FALSE.


Index: include/posix.h
===================================================================
--- include/posix.h     (revision 113914)
+++ include/posix.h     (working copy)
@@ -47,6 +47,8 @@
  #else
  #define _Jv_platform_solib_suffix ".so"
  #endif
+#undef TRUE
+#undef FALSE

  // Some POSIX systems don't have O_SYNC and O_DYSNC so we define them 
here.
  // Needed in java/io/natFileDescriptorPosix.cc.

             reply	other threads:[~2006-05-19 22:16 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-05-19 22:16 Andreas Tobler [this message]
2006-05-22 21:25 ` Tom Tromey
2006-05-23 19:47   ` Andreas Tobler
2006-05-24  0:39     ` Tom Tromey
2006-05-25 23:21       ` John David Anglin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=446E43A3.3080507@pop.agri.ch \
    --to=toa@pop.agri.ch \
    --cc=java-patches@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).