guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

branch master updated: syscalls: Fix Linux detection in 'readdir*'.


From: guix-commits
Subject: branch master updated: syscalls: Fix Linux detection in 'readdir*'.
Date: Mon, 20 Apr 2020 10:30:33 -0400

This is an automated email from the git hooks/post-receive script.

roptat pushed a commit to branch master
in repository guix.

The following commit(s) were added to refs/heads/master by this push:
     new fd546bb  syscalls: Fix Linux detection in 'readdir*'.
fd546bb is described below

commit fd546bbbeee5237e29264791b61f9ba453ebff9f
Author: Julien Lepiller <address@hidden>
AuthorDate: Mon Apr 20 16:21:17 2020 +0200

    syscalls: Fix Linux detection in 'readdir*'.
    
    * guix/build/syscalls.scm (readdir*): Fix Linux detection for
    `arm-unknown-linux-gnueabihf'.
---
 guix/build/syscalls.scm | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/guix/build/syscalls.scm b/guix/build/syscalls.scm
index 7ef0341..73b439f 100644
--- a/guix/build/syscalls.scm
+++ b/guix/build/syscalls.scm
@@ -4,6 +4,7 @@
 ;;; Copyright © 2015 Mark H Weaver <address@hidden>
 ;;; Copyright © 2017 Mathieu Othacehe <address@hidden>
 ;;; Copyright © 2019 Guillaume Le Vaillant <address@hidden>
+;;; Copyright © 2020 Julien Lepiller <address@hidden>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -943,7 +944,7 @@ system to PUT-OLD."
 
 (define readdir*
   ;; Decide at run time which one must be used.
-  (if (string-suffix? "linux-gnu" %host-type)
+  (if (string-contains %host-type "linux-gnu")
       (readdir-procedure (c-struct-field-offset %struct-dirent-header/linux
                                                 name)
                          sizeof-dirent-header/linux



reply via email to

[Prev in Thread] Current Thread [Next in Thread]