Hello everybody.

I have encountered a problem with compiling some exploits from milw0rm written in c. The problem is that I can't compile c-files with windows.h, winsocket2.h and winsocket.h headers. I use Backtrack 2. Should I include the directories in some way? Can someone please help me? Thankful for answers!

Example:
Code:
Here is what I get when I try to compile for example (exploits/1376 at milw0rm):

bt ~ # gcc -o exploit exploit.c
exploit.c:2:22: winsock2.h: No such file or directory
exploit.c:4:21: windows.h: No such file or directory
exploit.c: In function `HttpHeader':
exploit.c:19: warning: function returns address of local variable
exploit.c: In function `main':
exploit.c:38: error: `WSADATA' undeclared (first use in this function)
exploit.c:38: error: (Each undeclared identifier is reported only once
exploit.c:38: error: for each function it appears in.)
exploit.c:38: error: syntax error before "wsaData"
exploit.c:40: error: storage size of 'addr' isn't known
exploit.c:41: error: `SOCKET' undeclared (first use in this function)
exploit.c:41: error: syntax error before "sock"
exploit.c:48: error: `wsaData' undeclared (first use in this function)
exploit.c:54: error: `sock' undeclared (first use in this function)
exploit.c:54: error: `AF_INET' undeclared (first use in this function)
exploit.c:54: error: `SOCK_STREAM' undeclared (first use in this function)
exploit.c:62: warning: assignment makes pointer from integer without a cast
exploit.c:68: error: dereferencing pointer to incomplete type
exploit.c:68: error: dereferencing pointer to incomplete type
exploit.c:75: error: invalid application of `sizeof' to incomplete type `sockaddr'
exploit.c:86: error: 'for' loop initial declaration used outside C99 mode
exploit.c:108:28: warning: no newline at end of file
bt ~ #