Port: fix compatibility header for Cygwin
[urcu.git] / urcu / syscall-compat.h
index 55576f0f165282623722dc1363bc7bdbc87f1512..d603db21d146bb01254efb83848381c9e6e4f1ff 100644 (file)
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  */
 
-#if defined(__ANDROID__)
+#if defined(__ANDROID__) || defined(__sun__) || defined(__GNU__)
 #include <sys/syscall.h>
-#elif defined(__linux__)
+#elif defined(__linux__) || defined(__GLIBC__)
 #include <syscall.h>
+
+#elif defined(__CYGWIN__)
+/* Don't include anything on Cygwin. */
+
+#else
+#error "Add platform support to urcu/syscall-compat.h"
 #endif
 
 #endif /* _URCU_SYSCALL_COMPAT_H */
This page took 0.023174 seconds and 4 git commands to generate.