error: identifier "S_ISUID" is undefined
I am attempting to port a benchmark from linux to windows. I am using the Intel C++ Compiler, and I have C99
support enabled. When I try to build the project, I get the following errors:
.decoder.c(192): error: identifier "S_ISUID" is undefined
fchmod(fd, ~(S_ISUID | S_ISGID |S_IXGRP | S_IXUSR | S_IXOTH));
^
.decoder.c(192): error: identifier "S_ISGID" is undefined
fchmod(fd, ~(S_ISUID | S_ISGID |S_IXGRP | S_IXUSR | S_IXOTH));
^
.decoder.c(192): error: identifier "S_IXGRP" is undefined
fchmod(fd, ~(S_ISUID | S_ISGID |S_IXGRP | S_IXUSR | S_IXOTH));
^
.decoder.c(192): error: identifier "S_IXUSR" is undefined
fchmod(fd, ~(S_ISUID | S_ISGID |S_IXGRP | S_IXUSR | S_IXOTH));
^
.decoder.c(192): error: identifier "S_IXOTH" is undefined
fchmod(fd, ~(S_ISUID | S_ISGID |S_IXGRP | S_IXUSR | S_IXOTH));
^
The portion of code that appears to be causing the errors is this:
Reassemble(void * args) {
int chunkcount = 0;
int fd = -1;
struct chunk_list * list_head, * p;
list_head = NULL;
if (args != NULL) {
fd = open((char *)args, O_CREAT|O_WRONLY|O_TRUNC);
if (fd < 0)
perror("Reassemble open");
fchmod(fd, ~(S_ISUID | S_ISGID |S_IXGRP | S_IXUSR | S_IXOTH)); //Error points to this line.
}
//The rest of the function...
}
|