diff --git a/rune/libenclave/internal/runtime/pal/skeleton/liberpal-skeleton.c b/rune/libenclave/internal/runtime/pal/skeleton/liberpal-skeleton.c index 0faa96c14d780a21a0b039b5b69ed63d458599f3..7e9609ca32916dbc183c3365175272a27c21ff66 100644 --- a/rune/libenclave/internal/runtime/pal/skeleton/liberpal-skeleton.c +++ b/rune/libenclave/internal/runtime/pal/skeleton/liberpal-skeleton.c @@ -39,7 +39,7 @@ static bool is_sgx_device(const char *dev) rc = stat(dev, &st); if (!rc) { - if ((st.st_mode & S_IFCHR) && (major(st.st_dev) == 10)) + if ((st.st_mode & S_IFCHR) && (major(st.st_rdev) == 10)) return true; }