diff --git a/doc/ext_jit.html b/doc/ext_jit.html
index 0d056b35..7b0dbe20 100644
--- a/doc/ext_jit.html
+++ b/doc/ext_jit.html
@@ -130,7 +130,7 @@ is represented by the decimal number xxyyzz.
jit.os
Contains the target OS name:
-"Windows", "Linux", "OSX", "BSD", "Posix" or "Other".
+"Windows", "Linux", "OSX", "BSD", "POSIX" or "Other".
jit.arch
diff --git a/src/lj_arch.h b/src/lj_arch.h
index 205f51a6..fe180e98 100644
--- a/src/lj_arch.h
+++ b/src/lj_arch.h
@@ -79,7 +79,7 @@
#elif LUAJIT_OS == LUAJIT_OS_BSD
#define LJ_OS_NAME "BSD"
#elif LUAJIT_OS == LUAJIT_OS_POSIX
-#define LJ_OS_NAME "Posix"
+#define LJ_OS_NAME "POSIX"
#else
#define LJ_OS_NAME "Other"
#endif