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

[glibc] 01/01: patches/hurd-i386/git-preadwritev2.diff: update



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

sthibault pushed a commit to branch glibc-2.26
in repository glibc.

commit eac885f2dc8d4376f137de572feae87209621208
Author: Samuel Thibault <samuel.thibault@ens-lyon.org>
Date:   Sun Sep 3 15:52:55 2017 +0000

    patches/hurd-i386/git-preadwritev2.diff: update
---
 debian/patches/hurd-i386/git-preadwritev2.diff | 27 ++++++++++++++++++++++++++
 1 file changed, 27 insertions(+)

diff --git a/debian/patches/hurd-i386/git-preadwritev2.diff b/debian/patches/hurd-i386/git-preadwritev2.diff
index 96297b6..a8e18e4 100644
--- a/debian/patches/hurd-i386/git-preadwritev2.diff
+++ b/debian/patches/hurd-i386/git-preadwritev2.diff
@@ -210,3 +210,30 @@ index f340c8a46d..9f05f97b40 100644
  #include <unistd.h>
  #include <sys/uio.h>
  
+diff --git a/misc/tst-preadvwritev2-common.c b/misc/tst-preadvwritev2-common.c
+index 8abedc14d0..913d683e33 100644
+--- a/misc/tst-preadvwritev2-common.c
++++ b/misc/tst-preadvwritev2-common.c
+@@ -22,9 +22,21 @@
+ static void
+ do_test_with_invalid_flags (void)
+ {
++#ifndef RWF_HIPRI
++# define RWF_HIPRI 0
++#endif
++#ifndef RWF_DSYNC
++# define RWF_DSYNC 0
++#endif
++#ifndef RWF_SYNC
++# define RWF_SYNC 0
++#endif
++#ifndef RWF_NOWAIT
++# define RWF_NOWAIT 0
++#endif
+ #define RWF_SUPPORTED	(RWF_HIPRI | RWF_DSYNC | RWF_SYNC | RWF_NOWAIT)
+   /* Set the next bit from the mask of all supported flags.  */
+-  int invalid_flag = __builtin_clz (RWF_SUPPORTED);
++  int invalid_flag = RWF_SUPPORTED != 0 ? __builtin_clz (RWF_SUPPORTED) : 2;
+   invalid_flag = 0x1 << ((sizeof (int) * CHAR_BIT) - invalid_flag);
+ 
+   char buf[32];

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-glibc/glibc.git


Reply to: