util: replaced ENODATA with ENOATTR for non-Linux systems
authorEleni Maria Stea <elene.mst@gmail.com>
Mon, 7 Jun 2021 06:10:30 +0000 (09:10 +0300)
committerEleni Maria Stea <elene.mst@gmail.com>
Mon, 28 Jun 2021 18:12:24 +0000 (21:12 +0300)
commit32b94df23e1a156edfc0759f9c582afabf85b01a
tree8784397b09c108f423f723346038f7ac3bf1ade6
parentd8bbb9daa20d9cf0ee114f33135e1ded2cfb82ce
util: replaced ENODATA with ENOATTR for non-Linux systems

On Linux ENODATA is defined but on BSD, and MacOSX ENOATTR is used
instead. Defined ENODATA to be ENOATTR when the system is not Linux.

v2: Replaced ENODATA and ENOATTR with -EFAULT that is exists everywhere
and added a comment (Ian Romanick)

Signed-off-by: Eleni Maria Stea <elene.mst@gmail.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11203>
src/util/os_file.c