]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Missing defines for FreeBSD 14 swapoff
authorPaul Floyd <pjfloyd@wanadoo.fr>
Wed, 13 Apr 2022 21:32:55 +0000 (23:32 +0200)
committerPaul Floyd <pjfloyd@wanadoo.fr>
Wed, 13 Apr 2022 21:32:55 +0000 (23:32 +0200)
+1 typo

coregrind/m_syswrap/priv_syswrap-freebsd.h
include/vki/vki-scnums-freebsd.h

index 6297033e14773dc784c4b5aa910f0e47e5567a7c..36a48ac1ffe1d1e77beaffea5b1fc1a1e1c87a67 100644 (file)
@@ -556,7 +556,7 @@ DECL_TEMPLATE(freebsd, sys___specialfd) // 577
 
 // unimpl __NR_fspacectl   580
 // unimpl __NR_sched_getcpu        581
-DECL_TEMPLATE(freebsd, __NR_swapoff) // 582
+DECL_TEMPLATE(freebsd, sys_swapoff) // 582
 #endif
 
 DECL_TEMPLATE(freebsd, sys_fake_sigreturn)
index cd806dcb94690ff4e9d367ee6ae1ee426d6b204c..d1df3d4dd8be1615db2ca6c976382e19e94f97a1 100644 (file)
 #define __NR_setcontext          422
 #define __NR_swapcontext         423
 #if (FREEBSD_VERS >= FREEBSD_14)
-#define __NR_freebsd14_swapoff   424
+#define __NR_freebsd13_swapoff   424
 #else
 #define __NR_swapoff             424
 #endif
 
 #endif
 
+#if (FREEBSD_VERS >= FREEBSD_14)
+
+#define __NR_fspacectl           580
+#define __NR_sched_getcpu        581
+#define __NR_swapoff             582
+
+#endif
+
 #define __NR_fake_sigreturn      1000
 
 #endif /* VKI_UNISTD_FREEBSD_H */