Jean-Marc Lasgouttes wrote:
>>> or make configure check for it and set it in config.h?
> 
> Angus> I guess that it is *possible*, but really do we care? How would
> Angus> user code look?
> 
> Angus>     PID_TYPE foo();
> 
> Angus> or would config.h have the typedef?
> 
> AC_TYPE_PID_T.

Ahhh. Thanks, Jean-Marc. I see that we already have the test and that Rob
merely needs me to modify development/Win32/config.h.

Looks Ok to commit?

-- 
Angus
Index: development/Win32/config.h
===================================================================
RCS file: /usr/local/lyx/cvsroot/lyx-devel/development/Win32/config.h,v
retrieving revision 1.3
diff -u -p -r1.3 config.h
--- development/Win32/config.h	23 Feb 2005 18:01:57 -0000	1.3
+++ development/Win32/config.h	22 Apr 2005 09:55:34 -0000
@@ -531,7 +531,7 @@
 /* #undef off_t */
 
 /* Define to `int' if <sys/types.h> does not define. */
-/* #undef pid_t */
+#define pid_t int
 
 /* Define as the type of the result of subtracting two pointers, if the system
    doesn't define it. */
Index: src/support/ChangeLog
===================================================================
RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/support/ChangeLog,v
retrieving revision 1.338
diff -u -p -r1.338 ChangeLog
--- src/support/ChangeLog	21 Apr 2005 21:59:05 -0000	1.338
+++ src/support/ChangeLog	22 Apr 2005 09:55:36 -0000
@@ -1,3 +1,8 @@
+2005-04-22  Angus Leeming  <[EMAIL PROTECTED]>
+
+	* forkedcontr.h:
+	* forkedcall.h: remove pid_t definition to config.h.
+
 2005-04-21  Angus Leeming  <[EMAIL PROTECTED]>
 
 	* forkedcontr.h: 
Index: src/support/forkedcall.h
===================================================================
RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/support/forkedcall.h,v
retrieving revision 1.21
diff -u -p -r1.21 forkedcall.h
--- src/support/forkedcall.h	21 Apr 2005 21:05:05 -0000	1.21
+++ src/support/forkedcall.h	22 Apr 2005 09:55:36 -0000
@@ -31,11 +31,6 @@
 
 #include <sys/types.h>
 
-// pid_t isn't defined by the stdlibs that ship with MSVC.
-#if defined (_WIN32) && defined(_MSC_VER)
-typedef int pid_t;
-#endif
-
 
 namespace lyx {
 namespace support {
Index: src/support/forkedcontr.h
===================================================================
RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/support/forkedcontr.h,v
retrieving revision 1.20
diff -u -p -r1.20 forkedcontr.h
--- src/support/forkedcontr.h	21 Apr 2005 21:59:05 -0000	1.20
+++ src/support/forkedcontr.h	22 Apr 2005 09:55:36 -0000
@@ -24,11 +24,6 @@
 #include <string>
 #include <vector>
 
-// pid_t isn't defined by the stdlibs that ship with MSVC.
-#if defined (_WIN32) && defined(_MSC_VER)
-typedef int pid_t;
-#endif
-
 
 namespace lyx {
 namespace support {

Reply via email to