ORBit2 r2065 - in trunk: . src/orb/poa



Author: tml
Date: Sun May 25 10:24:49 2008
New Revision: 2065
URL: http://svn.gnome.org/viewvc/ORBit2?rev=2065&view=rev

Log:
2008-05-25  Tor Lillqvist  <tml novell com>

	* src/orb/poa/poa.c (getpid): Fix compilation with gcc after
	change below. Define getpid() on Windows.



Modified:
   trunk/ChangeLog
   trunk/src/orb/poa/poa.c

Modified: trunk/src/orb/poa/poa.c
==============================================================================
--- trunk/src/orb/poa/poa.c	(original)
+++ trunk/src/orb/poa/poa.c	Sun May 25 10:24:49 2008
@@ -17,6 +17,10 @@
 #include "poa-private.h"
 #include "orbit-poa.h"
 
+#ifdef G_OS_WIN32
+# define getpid() ((int) GetCurrentProcessId())
+#endif
+
 #ifdef DEBUG_LOCKS
 #  define LOCK_DEBUG(a) g_printerr("%p: %6s file %s: line %d (%s)\n", \
 				   poa, a, __FILE__, __LINE__, __PRETTY_FUNCTION__);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]