All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] linux/inotify.h: do not include <linux/fcntl.h> in userspace
@ 2008-09-16 12:22 Kirill A. Shutemov
  2008-09-16 12:58 ` Adrian Bunk
  0 siblings, 1 reply; 10+ messages in thread
From: Kirill A. Shutemov @ 2008-09-16 12:22 UTC (permalink / raw)
  To: linux-kernel
  Cc: Kirill A. Shutemov, Ulrich Drepper, Davide Libenzi,
	David Woodhouse, Andrew Morton

<linux/fcntl.h> conflicts with glibc's <fcntl.h>.

It breaks building kdelibs, kdepim and pinot. It's regression itroduced
by commit 4006553.

Signed-off-by: Kirill A. Shutemov <kirill@shutemov.name>
Cc: Ulrich Drepper <drepper@redhat.com>
Cc: Davide Libenzi <davidel@xmailserver.org>
Cc: David Woodhouse <dwmw2@infradead.org>
Cc: Andrew Morton <akpm@linux-foundation.org>
---
 include/linux/inotify.h |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/include/linux/inotify.h b/include/linux/inotify.h
index bd57857..792b6f0 100644
--- a/include/linux/inotify.h
+++ b/include/linux/inotify.h
@@ -7,8 +7,10 @@
 #ifndef _LINUX_INOTIFY_H
 #define _LINUX_INOTIFY_H
 
+#ifdef __KERNEL__
 /* For O_CLOEXEC and O_NONBLOCK */
 #include <linux/fcntl.h>
+#endif
 #include <linux/types.h>
 
 /*
-- 
1.5.6.5.GIT


^ permalink raw reply related	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2008-09-17 10:12 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-09-16 12:22 [PATCH] linux/inotify.h: do not include <linux/fcntl.h> in userspace Kirill A. Shutemov
2008-09-16 12:58 ` Adrian Bunk
2008-09-16 13:02   ` Kirill A. Shutemov
2008-09-16 13:31     ` Adrian Bunk
2008-09-16 14:10     ` Ulrich Drepper
2008-09-16 14:43       ` Kirill A. Shutemov
2008-09-16 16:09       ` Adrian Bunk
2008-09-17  9:32         ` Kirill A. Shutemov
2008-09-17 10:04           ` Kirill A. Shutemov
2008-09-17 10:12             ` Adrian Bunk

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.