Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 12.00.8804 for 80x86 Copyright (C) Microsoft Corp 1984-1998. All rights reserved. cc_test.c Microsoft (R) Incremental Linker Version 6.00.8447 Copyright (C) Microsoft Corp 1992-1998. All rights reserved. /out:cc_test.exe /out:cc_test.exe cc_test.obj Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 12.00.8804 for 80x86 Copyright (C) Microsoft Corp 1984-1998. All rights reserved. fcntl_test.c fcntl_test.c(6) : error C2079: 'f' uses undefined struct 'flock' fcntl_test.c(7) : error C2224: left of '.l_type' must have struct/union type fcntl_test.c(7) : error C2065: 'F_RDLCK' : undeclared identifier fcntl_test.c(8) : error C2224: left of '.l_whence' must have struct/union type fcntl_test.c(9) : error C2224: left of '.l_start' must have struct/union type fcntl_test.c(10) : error C2224: left of '.l_len' must have struct/union type fcntl_test.c(11) : error C2065: 'F_SETLK' : undeclared identifier Failed to compile a program that uses fcntl(). Does your system have a fcntl(2) system call?