Redefine getpid() -> _getpid() only for MSVC
This was introduced in for MSVC. C++Builder doesn't need it.
@@ -27,13 +27,13 @@ typedef unsigned int u_int;
#endif
#ifdef _WIN32
-/*
- * With MSVC, certain POSIX functions have been renamed to have an underscore
- * prefix.
- */
# include <process.h>
+
+/* MSVC renamed some POSIX functions to have an underscore prefix. */
+# ifdef _MSC_VER
# define getpid _getpid
# endif
+#endif
#ifndef OPENSSL_NO_SOCK
