]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
ltmain.in: Expand process.h inclusion on Windows
authorIleana Dumitrescu <ileanadumitrescu95@gmail.com>
Thu, 29 Feb 2024 13:58:26 +0000 (15:58 +0200)
committerIleana Dumitrescu <ileanadumitrescu95@gmail.com>
Thu, 29 Feb 2024 14:25:35 +0000 (16:25 +0200)
Multiple compilers on Windows besides the proprietary MSVC compiler
require process.h, and not unistd.h. The inclusion check is expanded
to include these alternative compilers which also require process.h.

* ltmain.in: Replace _MSV_VER with WIN32 and !__GNU_C check

build-aux/ltmain.in

index d94bce551660937d399ed6a5eccd3c6a98d17f0f..1b8d50316dd6885a92cfbc943f99dc5d3cec5460 100644 (file)
@@ -3638,7 +3638,7 @@ EOF
 #endif
 #include <stdio.h>
 #include <stdlib.h>
-#ifdef _MSC_VER
+#if defined (WIN32) && !defined (__GNUC_)
 # include <direct.h>
 # include <process.h>
 # include <io.h>