Re: linux/*.h include files

2003-10-17 Thread Brian Dessent
Flavio Rabello de Souza wrote: > > I´m trying to compile a C program under cygwin but it uses some linux > include files. (#include and #include ) I did something similar when compiling tcpflow, but I just used a couple of missing header files from FreeBSD. See

Re: linux/*.h include files

2003-10-17 Thread Steve Coleman
Flavio Rabello de Souza wrote: But i still getting an error :( Looks like its not completelly implements the linux/if_ether.h and linux/in.h :) the error message i got: $ gcc -o sniffer sniffer.c sniffer.c: In function `main': sniffer.c:14: error: `PF_PACKET' undeclared (first use in this func

Re: linux/*.h include files

2003-10-17 Thread Flavio Rabello de Souza
thanks steve! But i still getting an error :( Looks like its not completelly implements the linux/if_ether.h and linux/in.h :) the error message i got: $ gcc -o sniffer sniffer.c sniffer.c: In function `main': sniffer.c:14: error: `PF_PACKET' undeclared (first use in this function) sniffer.c:1

Re: linux/*.h include files

2003-10-17 Thread Steve Coleman
Flavio Rabello de Souza wrote: I´m trying to compile a C program under cygwin but it uses some linux include files. (#include and #include ) On my cygwin system I have both and . These are the 'standard' includes that they probably should have used if they wanted their code to be portable. T

linux/*.h include files

2003-10-17 Thread Flavio Rabello de Souza
I´m trying to compile a C program under cygwin but it uses some linux include files. (#include and #include ) Is there a downloadable package with these files? Could i copy the original linux .h files to the include directory? or the program will not run under cygwin? :) Atenciosamente, (Sin