X-Git-Url: https://git.camperquake.de/gitweb.cgi?a=blobdiff_plain;f=lib%2Flibspl%2Finclude%2Funistd.h;h=dc95e28b56450fe73a39121ef5f0578549b3523b;hb=a1d9543a39942be56879ca9338078afc77c25cea;hp=44173d2a43caa0afcbbacc770c83d7634b24bc4d;hpb=a26baf285f71eb95f1eace8c79d12d647a694488;p=zfs.git diff --git a/lib/libspl/include/unistd.h b/lib/libspl/include/unistd.h index 44173d2..dc95e28 100644 --- a/lib/libspl/include/unistd.h +++ b/lib/libspl/include/unistd.h @@ -44,14 +44,4 @@ # define issetugid() (geteuid() == 0 || getegid() == 0) #endif -#if !defined(__sun__) && !defined(__sun) -/* It seems Solaris only returns positive host ids */ -static inline long fake_gethostid(void) -{ - long id = gethostid(); - return id >= 0 ? id : -id; -} -#define gethostid() fake_gethostid() -#endif - #endif /* _LIBSPL_UNISTD_H */