[stgt] Cannot compile latest git version (as of Sep 21) on Fedora 9 and 11
FUJITA Tomonori
fujita.tomonori at lab.ntt.co.jp
Wed Sep 23 10:57:17 CEST 2009
On Mon, 21 Sep 2009 15:03:26 +0200
Albert Pauw <albert.pauw at gmail.com> wrote:
> I haven't changed it, but here is the file you asked for:
>
> /*
> * include/linux/signalfd.h
> *
> * Copyright (C) 2007 Davide Libenzi <davidel at xmailserver.org>
> *
> */
>
> #ifndef _LINUX_SIGNALFD_H
> #define _LINUX_SIGNALFD_H
>
> #include <linux/types.h>
> /* For O_CLOEXEC and O_NONBLOCK */
> #include <linux/fcntl.h>
Ok, this line is wrong. Seems that we need another workaround. The
following patch works for you?
diff --git a/usr/util.h b/usr/util.h
index a7446a3..b345730 100644
--- a/usr/util.h
+++ b/usr/util.h
@@ -119,6 +119,8 @@ static inline int __sync_file_range(int fd, __off64_t offset, __off64_t bytes)
#endif
#if defined(__NR_signalfd) && defined(USE_SIGNALFD)
+
+#define _LINUX_FCNTL_H
#include <linux/signalfd.h>
static inline int __signalfd(int fd, const sigset_t *mask, int flags)
--
To unsubscribe from this list: send the line "unsubscribe stgt" in
the body of a message to majordomo at vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
More information about the stgt
mailing list