ETIME not defined in /usr/include/errno.h, current pkgsrc libdrm 2.4.37 intel_bufmgr_gem.c won't build
/usr/include/errno.h from latest DEVEL-3.1 does not appear to define ETIME. ETIME appears to be associated with STREAMS as an option in the POSIX standard; therefore, if STREAMS is not implemented, there may be good reason for it to not be defined.
Even if ETIME is to be deliberately not defined, there needs to be some recommendation on what its value should be for porting applications such as libdrm 2.4.37.
#1 Updated by swildner almost 2 years ago
Hmm, can this be brought to the libdrm people's attention, please?
We don't have ETIME at all (I don't see it being under #ifndef _POSIX_SOURCE as it is claimed in http://mail-index.netbsd.org/pkgsrc-bugs/2012/07/03/msg048227.html).
It's marked both optional and obsolescent in current OpenGroup Specs -> http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/errno.h.html
I don't think the solution is to add it to our errno.h. It would be the first package I know of that requires it.
#2 Updated by marino almost 2 years ago
I agree with Sascha except for the last line.
We've run into ETIME problems at least once before. In that case, we just changed the enumeration because it wasn't being used anyway for the reasons listed above. So in general, when I see ETIME, I suspect the software first.