You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by hi...@apache.org on 2010/06/03 15:38:17 UTC

svn commit: r950994 - /harmony/enhanced/java/trunk/jdktools/modules/jpda/src/main/native/jdwp/unix/transport/dt_socket/SocketTransport_pd.h

Author: hindessm
Date: Thu Jun  3 13:38:16 2010
New Revision: 950994

URL: http://svn.apache.org/viewvc?rev=950994&view=rev
Log:
The rest of the unix world defines TRUE to 1 using #define so to avoid
a syntax error on those platforms lets use the same mechanism here too.
(Fixes Aix for me.)

Modified:
    harmony/enhanced/java/trunk/jdktools/modules/jpda/src/main/native/jdwp/unix/transport/dt_socket/SocketTransport_pd.h

Modified: harmony/enhanced/java/trunk/jdktools/modules/jpda/src/main/native/jdwp/unix/transport/dt_socket/SocketTransport_pd.h
URL: http://svn.apache.org/viewvc/harmony/enhanced/java/trunk/jdktools/modules/jpda/src/main/native/jdwp/unix/transport/dt_socket/SocketTransport_pd.h?rev=950994&r1=950993&r2=950994&view=diff
==============================================================================
--- harmony/enhanced/java/trunk/jdktools/modules/jpda/src/main/native/jdwp/unix/transport/dt_socket/SocketTransport_pd.h (original)
+++ harmony/enhanced/java/trunk/jdktools/modules/jpda/src/main/native/jdwp/unix/transport/dt_socket/SocketTransport_pd.h Thu Jun  3 13:38:16 2010
@@ -57,7 +57,9 @@ typedef int SOCKET;
 typedef timeval TIMEVAL;
 typedef int BOOL;
 
-const int TRUE = 1;
+#ifndef TRUE
+#define TRUE 1
+#endif
 const int SOCKET_ERROR = -1;
 const int SOCKET_ERROR_EINTR = EINTR;
 const int INVALID_SOCKET = -1;