Opened 11 years ago

Closed 11 years ago

#2592 closed enhancement (fixed)

Solaris does not define NAME_MAX

Reported by: andreasf Owned by: bonefish
Priority: normal Milestone: R1
Component: Build System Version: R1/pre-alpha1
Keywords: Cc:
Blocked By: Blocking:
Has a Patch: no Platform: All


B_FILE_NAME_LENGTH is defined to NAME_MAX in headers/build/os/storage/StorageDefs.h, leading to compilation failure in OS.h.

Apparently this symbol is not mandatory in POSIX and may vary. The pathconf function would in theory be used to retrieve that value from file name or file descriptor.

We should probably define B_FILE_NAME_LENGTH to some sensible constant value in that case.

Change History (2)

comment:1 Changed 11 years ago by andreasf

Fixed in hrev26899, please close the ticket.

comment:2 Changed 11 years ago by bonefish

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.