libphobos: Fix KERNEL_VERSION condition in libphobos testsuite
authorIain Buclaw <ibuclaw@gdcproject.org>
Wed, 29 Apr 2020 08:42:21 +0000 (10:42 +0200)
committerIain Buclaw <ibuclaw@gdcproject.org>
Wed, 29 Apr 2020 08:42:21 +0000 (10:42 +0200)
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.

libphobos/ChangeLog
libphobos/testsuite/lib/libphobos.exp

index a4e209d8615013f0b292b68731bb5828945285db..f8a82182427817cd32353aa794c0e404ad3b52dc 100644 (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
index 7e6e53e9d5c350a7d760ef33d8ed0c76f2756337..2e9da95ac1cd9e618201c987211cd14a00c6b615 100644 (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
     }] } {