Linux bluetooth development
 help / color / mirror / Atom feed
From: Johan Hedberg <johan.hedberg@gmail.com>
To: Mikel Astiz <mikel.astiz@bmw-carit.de>
Cc: linux-bluetooth@vger.kernel.org
Subject: Re: [PATCH obexd v2] syncevolution: fix missing header file
Date: Thu, 17 Nov 2011 13:39:50 +0200	[thread overview]
Message-ID: <20111117113950.GA5884@fusion.localdomain> (raw)
In-Reply-To: <1321526525-2727-1-git-send-email-mikel.astiz@bmw-carit.de>

Hi Mikel,

On Thu, Nov 17, 2011, Mikel Astiz wrote:
> This missing include directive makes the syncevolution plugin fail to
> compile. In Fedora 16 with gcc version 4.6.1 20110908, the output is:
> 
> make --no-print-directory all-am
>   CC     plugins/syncevolution.o
> In file included from plugins/syncevolution.c:40:0:
> ./src/mimetype.h:33:46: error: unknown type name ‘mode_t’
> plugins/syncevolution.c:277:54: error: unknown type name ‘mode_t’
> plugins/syncevolution.c:438:2: error: unknown field ‘open’ specified in initializer
> plugins/syncevolution.c:438:10: error: ‘synce_open’ undeclared here (not in a function)
> make[1]: *** [plugins/syncevolution.o] Error 1
> ---
>  src/mimetype.h |    2 ++
>  1 files changed, 2 insertions(+), 0 deletions(-)
> 
> diff --git a/src/mimetype.h b/src/mimetype.h
> index 79529b8..374dcac 100644
> --- a/src/mimetype.h
> +++ b/src/mimetype.h
> @@ -21,6 +21,8 @@
>   *
>   */
>  
> +#include <sys/types.h>
> +
>  typedef gboolean (*obex_object_io_func) (void *object, int flags, int err,
>  							void *user_data);

mimetype.h also contains usage of uint8_t and gboolean, yet it doesn't
include glib.h nor stdint.h. Either the .h file should include all of
its dependencies or none of them. Since including all of them hasn't
been the practice so far I'd say the right place for the missing include
is syncevolution.c.

Johan

      reply	other threads:[~2011-11-17 11:39 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-11-17 10:42 [PATCH obexd v2] syncevolution: fix missing header file Mikel Astiz
2011-11-17 11:39 ` Johan Hedberg [this message]

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=20111117113950.GA5884@fusion.localdomain \
    --to=johan.hedberg@gmail.com \
    --cc=linux-bluetooth@vger.kernel.org \
    --cc=mikel.astiz@bmw-carit.de \
    /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