getpid() patch

Gisle Vanem <[email protected]> Fri, 08 Jul 2005 19:20:45 +0200
Newsgroups gmane.comp.web.wget.patches
Message-ID <[email protected]>
getpid() on Win32 compilers is prototyped in <process.h> 
which all have. Add HAVE_PROCESS_H to config.h.

--gv
diffs-2.txt (text/plain, 777 B)
diff -u3 -Hb -r SVN-Latest\src\utils.c .\src\utils.c
--- SVN-Latest\src\utils.c	Fri Jul 08 18:59:40 2005
+++ .\src\utils.c	Fri Jul 08 14:47:19 2005
@@ -48,6 +48,9 @@
 #ifdef HAVE_SYS_UTIME_H
 # include <sys/utime.h>
 #endif
+#ifdef HAVE_PROCESS_H
+# include <process.h>
+#endif
 #include <errno.h>
 #include <fcntl.h>
 #include <assert.h>
diff -u3 -Hb -r SVN-Latest\windows\config.h .\windows\config.h
--- SVN-Latest\windows\config.h	Fri Jul 08 19:00:24 2005
+++ .\windows\config.h	Fri Jul 08 18:53:48 2005
@@ -136,6 +136,9 @@
 /* Define to 1 if you have the `usleep' function. */
 /* #undef HAVE_USLEEP */

+/* Define to 1 if you have the <process.h> header file. */
+#define HAVE_PROCESS_H
+
 /* Define to 1 if you have the <utime.h> header file. */
 #define HAVE_UTIME_H 1