public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: "Arve Hjønnevåg" <arve@android.com>
To: linux-kernel@vger.kernel.org, Miklos Szeredi <mszeredi@suse.cz>
Cc: "Arve Hjønnevåg" <arve@android.com>
Subject: [PATCH] fuse: Fix build after change to synchronize with library
Date: Mon, 11 Mar 2013 15:54:16 -0700	[thread overview]
Message-ID: <1363042456-8895-1-git-send-email-arve@android.com> (raw)

__linux__ is not always defined so check __KERNEL__ as well.

Signed-off-by: Arve Hjønnevåg <arve@android.com>
---
 include/uapi/linux/fuse.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/uapi/linux/fuse.h b/include/uapi/linux/fuse.h
index 4c43b44..fc5d400 100644
--- a/include/uapi/linux/fuse.h
+++ b/include/uapi/linux/fuse.h
@@ -95,7 +95,7 @@
 #ifndef _LINUX_FUSE_H
 #define _LINUX_FUSE_H
 
-#ifdef __linux__
+#if defined(__KERNEL__) || defined(__linux__)
 #include <linux/types.h>
 #else
 #include <stdint.h>
-- 
1.8.1.3


             reply	other threads:[~2013-03-11 22:54 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-03-11 22:54 Arve Hjønnevåg [this message]
2013-03-12  9:02 ` [PATCH] fuse: Fix build after change to synchronize with library Miklos Szeredi
2013-03-12 23:37   ` Arve Hjønnevåg

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1363042456-8895-1-git-send-email-arve@android.com \
    --to=arve@android.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mszeredi@suse.cz \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox