diff --git a/ChangeLog.txt b/ChangeLog.txt index c6e8279b28..16e8122060 100644 --- a/ChangeLog.txt +++ b/ChangeLog.txt @@ -7,6 +7,11 @@ Entries may not always be in chronological/commit order. See license at the end of file. */ +2025-01-30 19:59 UTC+0100 Aleksander Czajczynski (hb fki.pl) + * utils/hbmk2/hbmk2.prg + ! issue #379 follow-up to OpenWatcom target platform + autodetection, hbmk2 needed similar patching + 2025-01-30 17:58 UTC+0100 Przemyslaw Czerpak (druzus/at/poczta.onet.pl) * contrib/3rd/sqlite3/sqlite3.c * for GCC >= 14 builds added diff --git a/utils/hbmk2/hbmk2.prg b/utils/hbmk2/hbmk2.prg index 6211f6c42e..1b89b36fb8 100644 --- a/utils/hbmk2/hbmk2.prg +++ b/utils/hbmk2/hbmk2.prg @@ -2150,11 +2150,11 @@ STATIC FUNCTION __hbmk( aArgs, nArgTarget, nLevel, /* @ */ lPause, /* @ */ lExit DO CASE CASE FindInPath( "os2.h", GetEnv( "INCLUDE" ) ) != NIL hbmk[ _HBMK_cPLAT ] := "os2" - CASE FindInPath( "dirent.h", GetEnv( "INCLUDE" ) ) != NIL - hbmk[ _HBMK_cPLAT ] := "linux" CASE FindInPath( "windows.h", GetEnv( "INCLUDE" ) ) != NIL hbmk[ _HBMK_cPLAT ] := "win" - OTHERWISE + CASE At( Lower( PathSepToForward( GetEnv( "WATCOM" ) ) ) + "/lh", Lower( PathSepToForward( GetEnv( "INCLUDE" ) ) ) ) > 0 + hbmk[ _HBMK_cPLAT ] := "linux" + CASE hbmk[ _HBMK_cPLAT ] == Lower( hb_Version( HB_VERSION_PLATFORM ) ) hbmk[ _HBMK_cPLAT ] := "dos" ENDCASE ENDIF