On 4/15/23 15:27, Paul Eggert wrote:
My suggestion is that we give up on having dependencies address this particular issue, since they cause more trouble than they cure. Let's just go back to year2038 not depending on anything other than largefile, and tell people to include config.h first without trying to enforce it for time_t-related types and functions.
Come to think of it, a less-drastic option would be for year2038 to depend only on time-h and on largefile. If I understand things, this would suffice for the only platforms for which year2038 makes any difference, since the other modules (sys_shm etc.) have implementations where if time-h is present then time_t will be 64 bits only the only platforms where year2038 has an effect.
It's not a big lift for year2038 to require time-h, since the apps that care about time_t surely need time-h anyway.
