Opened 12 years ago

Closed 12 years ago

#272 closed defect (fixed)

Can not be compiled under Mac OS X. Complain O_DIRECT flag.

Reported by: yww4 Owned by: perry
Priority: major Milestone:
Component: libtrace-library Version:
Keywords: Cc:


When compile svn1541 under Mac OS X, compiler complains:

ior-stdio.c: In function ‘stdio_open’: ior-stdio.c:66: error: ‘O_DIRECT’ undeclared (first use in this function) ior-stdio.c:66: error: (Each undeclared identifier is reported only once ior-stdio.c:66: error: for each function it appears in.) make[2]: * [ior-stdio.lo] Error 1 make[1]: * [all-recursive] Error 1 make: * [all] Error 2

This is due to Mac OS X doesn't has O_DIRECT flag.

Attachments (1)

osx_o_direct.patch (466 bytes) - added by yww4 12 years ago.
quick fix with #ifdef APPLE

Download all attachments as: .zip

Change History (3)

Changed 12 years ago by yww4

quick fix with #ifdef APPLE

comment:1 Changed 12 years ago by anonymous

You should probably use "#ifdef O_DIRECT" instead :) I'll fix it on monday when I get to work.

comment:2 Changed 12 years ago by anonymous

  • Resolution set to fixed
  • Status changed from new to closed

Fixed in r1542

Note: See TracTickets for help on using tickets.