diff --git a/sys/compat/freebsd32/syscalls.master b/sys/compat/freebsd32/syscalls.master
index 0141f48fdb3c..7f4cc6f1044e 100644
--- a/sys/compat/freebsd32/syscalls.master
+++ b/sys/compat/freebsd32/syscalls.master
@@ -910,8 +910,8 @@
 				    uint32_t length1, uint32_t length2); }
 #endif
 481	AUE_THR_KILL2	NOPROTO	{ int thr_kill2(pid_t pid, long id, int sig); }
-482	AUE_SHMOPEN	NOPROTO	{ int shm_open(const char *path, int flags, \
-				    mode_t mode); }
+482	AUE_SHMOPEN	COMPAT12|NOPROTO	{ int shm_open(const char *path,
+				    int flags, mode_t mode); }
 483	AUE_SHMUNLINK	NOPROTO	{ int shm_unlink(const char *path); }
 484	AUE_NULL	NOPROTO	{ int cpuset(cpusetid_t *setid); }
 #ifdef PAD64_REQUIRED
diff --git a/sys/kern/syscalls.master b/sys/kern/syscalls.master
index 4aa117d9b797..cd9a825e926c 100644
--- a/sys/kern/syscalls.master
+++ b/sys/kern/syscalls.master
@@ -2579,7 +2579,7 @@
 		    int sig
 		);
 	}
-482	AUE_SHMOPEN	STD {
+482	AUE_SHMOPEN	COMPAT12 {
 		int shm_open(
 		    _In_z_ const char *path,
 		    int flags,