Bug #2393
ETIME not defined in /usr/include/errno.h, current pkgsrc libdrm 2.4.37 intel_bufmgr_gem.c won't build
| Status: | Closed | Start date: | 07/02/2012 | |
|---|---|---|---|---|
| Priority: | Normal | Due date: | ||
| Assignee: | - | % Done: | 0% |
|
| Category: | - | |||
| Target version: | - |
Description
/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.
Related todos
History
Updated by swildner 11 months 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.
Sascha
Updated by marino 10 months 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.