diff --git a/include/sys/stat.h b/include/sys/stat.h index 739ce4792..e67580b46 100644 --- a/include/sys/stat.h +++ b/include/sys/stat.h @@ -65,7 +65,7 @@ struct stat { #define S_ISBLK(m) (((m) & S_IFMT) == S_IFBLK) /* is a block spec */ #define S_ISLNK(m) (((m) & S_IFMT) == S_IFLNK) /* is a symlink */ #define S_ISFIFO(m) (((m) & S_IFMT) == S_IFIFO) /* is a pipe/FIFO */ -#define S_ISSOCK(m) (((m) & S_IFMT) == S_ISOCK) /* is a socket */ +#define S_ISSOCK(m) (((m) & S_IFMT) == S_IFSOCK) /* is a socket */ #define DEFFILEMODE (S_IRUSR|S_IWUSR|S_IRGRP|S_IWGRP|S_IROTH|S_IWOTH)