typedef long long off64_t;
#endif
-#ifdef __FreeBSD__
+#if (defined(__FreeBSD__) || defined(__sun__))
typedef off64_t loff_t;
#endif
#endif /* __linux__ */
-#if (defined(__FreeBSD__) || defined(__CYGWIN__))
+#if (defined(__FreeBSD__) || defined(__CYGWIN__) || defined(__sun__))
/*
* Possible flags under Linux. Simply nullify them and avoid wrapper.
*/
}
#endif
-#if (defined(__FreeBSD__) || defined(__CYGWIN__))
+#if (defined(__FreeBSD__) || defined(__CYGWIN__) || defined(__sun__))
/*
* Possible flags under Linux. Simply nullify them and avoid wrappers.
*/
}
#endif
-#if !(defined(__linux__) || defined(__FreeBSD__) || defined(__CYGWIN__))
+#if !(defined(__linux__) || defined(__FreeBSD__) || defined(__CYGWIN__) || defined(__sun__))
#error "Please add support for your OS."
-#endif /* __linux__ , __FreeBSD__, __CYGWIN__ */
+#endif /* __linux__ , __FreeBSD__, __CYGWIN__, __sun__ */
#endif /* _COMPAT_FCNTL_H */