Opened 8 years ago

Closed 8 months ago

#801 closed defect (wontfix)

non-standard functions

Reported by: Peter Owned by: Jari Häkkinen
Priority: trivial Milestone:
Component: utility Version: 0.11.2
Keywords: Cc:

Description

Current yat uses some posix functions like opendir, fnmatch, and basename, which are not included in any C or C++ standard. Not a big deal but I think we should either

  1. Document the requirement
  2. or have configure check if functions are available, and if not exclude related functionality from compilation of libyat.
  3. or similar to 2. but provide workaround code

For 2. it's perhaps a good idea to PP guard out functions from header files as well, but it's a bit dirty to expose too much of config.h content in the public headers. For 3. I have no idea how difficult things are to implement, but I guess in that case it's better to take the big leap and pull in gnulib since this is exactly what they are doing. While typing I realize there is an option 1 1/2 too: Document the requirements and check for them in configure (prefer configure error over compilation error).

Change History (1)

comment:1 Changed 8 months ago by Peter

Milestone: yat 0.x+
Resolution: wontfix
Status: newclosed

see comment for ticket #854

Note: See TracTickets for help on using tickets.