Also update warning messages.
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
return clone(fn, child_stack, CLONE_FILES | SIGCHLD, arg);
}
-#elif __FreeBSD__
+#elif defined(__FreeBSD__)
#include <unistd.h>
}
#else
-#error "Please add support for your OS into compat/clone.h."
+#error "Please add support for your OS."
#endif /* __linux__ , __FreeBSD__ */
#endif /* _COMPAT_CLONE_H */
#define lttng_sync_file_range(fd, offset, nbytes, flags) \
compat_sync_file_range(fd, offset, nbytes, flags)
-#elif __FreeBSD__
+#elif defined(__FreeBSD__)
typedef long int off64_t;
typedef off64_t loff_t;
}
#else
-#error "Please add support for your OS into compat/fcntl.h."
+#error "Please add support for your OS."
#endif /* __linux__ , __FreeBSD__ */
#endif /* _COMPAT_FCNTL_H */
#ifdef __linux__
-#elif __FreeBSD__
+#elif defined(__FreeBSD__)
#define MAP_GROWSDOWN 0
#define MAP_ANONYMOUS MAP_ANON
#else
-#error "Please add support for your OS into compat/mman.h."
+#error "Please add support for your OS."
#endif /* __linux__ , __FreeBSD__ */
#endif /* _COMPAT_MMAN_H */
#define LTTNG_SOCK_GET_GID_CRED(c) LTTNG_REF(c)->gid
#define LTTNG_SOCK_GET_PID_CRED(c) LTTNG_REF(c)->pid
-#elif __FreeBSD__
+#elif defined(__FreeBSD__)
#undef SO_PASSCRED
#define SO_PASSCRED 0
#define LTTNG_SOCK_GET_PID_CRED(c) LTTNG_REF(c)->cmcred_pid
#else
-#error "Please add support for your OS into lttng/ust-endian.h."
+#error "Please add support for your OS."
#endif /* __linux__ , __FreeBSD__ */
#endif /* _COMPAT_SOCKET_H */