open-iscsi / open-isns

iSNS server and client for Linux
GNU Lesser General Public License v2.1
26 stars 22 forks source link

util.h: endian.h is available on musl on linux #18

Closed kraj closed 6 years ago

kraj commented 6 years ago

just checking for glibc alone is not enough since it excludes musl, therefore check for platform being linux as well

Fixes build issues

include/libisns/util.h:114:12: fatal error: sys/endian.h: No such file or directory

include <sys/endian.h>

        ^~~~~~~~~~~~~~

Signed-off-by: Khem Raj raj.khem@gmail.com

gonzoleeman commented 6 years ago

Looks good to me. Thank you.