libphobos: Fix KERNEL_VERSION condition in libphobos testsuite

A typo in the macro call meant that the #error always triggered.

libphobos/ChangeLog:

	* testsuite/lib/libphobos.exp (check_effective_target_linux_pre_2639):
	Fix KERNEL_VERSION condition.
This commit is contained in:
Iain Buclaw 2020-04-29 10:42:21 +02:00
parent 75f758a703
commit 5916f2f673
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2020-04-29 Iain Buclaw <ibuclaw@gdcproject.org>
* testsuite/lib/libphobos.exp (check_effective_target_linux_pre_2639):
Fix KERNEL_VERSION condition.
2020-04-28 Iain Buclaw <ibuclaw@gdcproject.org>
PR d/94825

View File

@ -285,7 +285,7 @@ proc check_effective_target_linux_pre_2639 { } {
if { [check_no_compiler_messages linux_pre_2639 assembly {
#include <linux/version.h>
#if !defined LINUX_VERSION_CODE || LINUX_VERSION_CODE < KERNEL_VERSION(2.6.39)
#if !defined LINUX_VERSION_CODE || LINUX_VERSION_CODE < KERNEL_VERSION(2,6,39)
#error Yes, it is.
#endif
}] } {