Elbert & Nicole Pol wrote:
> Did a try to port it to Os2.
> But the make failed :(
> I use gcc 4.4.1
...
> savewd.c: In function 'savewd_chdir':
> savewd.c:112: error: 'O_DIRECTORY' undeclared (first use in this function)
> savewd.c:112: error: (Each undeclared identifier is reported only once
> savewd.c:112: error: for each function it appears in.)

That symbol is supposed to be defined in lib/fcntl.h.
And savewd.c does include <fcntl.h>.

Can you figure out what is not working?
Start by doing this:

    cd lib; rm -f savewd.o
    make AM_CFLAGS='-E -dD' savewd.o; mv savewd.o savewd.i

Then send look at savewd.i (preprocessed C) and see if you
can figure it out.


Reply via email to