3.10 API change: block_device_operations->release() returns void
[zfs.git] / lib / libspl / include / unistd.h
index 44173d2..dc95e28 100644 (file)
 # 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 */