]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
FreeBSD regtest: fix value of CLOSE_RANGE_CLOEXEC in close_range test
authorPaul Floyd <pjfloyd@wanadoo.fr>
Wed, 28 Feb 2024 19:01:05 +0000 (20:01 +0100)
committerPaul Floyd <pjfloyd@wanadoo.fr>
Wed, 28 Feb 2024 19:01:05 +0000 (20:01 +0100)
Spotted by Mark Wielaard, thanks.

memcheck/tests/freebsd/close_range.c

index 1821648b72a599e78cbab020beb539d06ca16e07..ba1adf9b5ca315830913d0a2a3e6eed8b26d1516 100644 (file)
@@ -12,7 +12,7 @@
  * And then CLOSE_RANGE_CLOEXEC added to 13 but not backported
  * so 12 has close_range but not CLOSE_RANGE_CLOEXEC */
 #if !defined(CLOSE_RANGE_CLOEXEC)
-#define CLOSE_RANGE_CLOEXEC 1
+#define CLOSE_RANGE_CLOEXEC 1<<2
 #endif
 
 int main(void)