public inbox for java-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [patch] include/posix.h
@ 2006-05-19 22:16 Andreas Tobler
  2006-05-22 21:25 ` Tom Tromey
  0 siblings, 1 reply; 5+ messages in thread
From: Andreas Tobler @ 2006-05-19 22:16 UTC (permalink / raw)
  To: Java Patches

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.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2006-05-25 23:21 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-05-19 22:16 [patch] include/posix.h Andreas Tobler
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

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).