From: Elektra <onelektra@gmx.net>
To: The list for a Better Approach To Mobile Ad-hoc Networking
<b.a.t.m.a.n@lists.open-mesh.org>
Subject: Re: [B.A.T.M.A.N.] [PATCH] batmand: Either all or no source file should #define _GNU_SOURCE.
Date: Thu, 21 Mar 2013 16:20:07 +0100 [thread overview]
Message-ID: <20130321162007.3e9836dbe3b881a8e2788741@gmx.net> (raw)
In-Reply-To: <20130321161629.3e471711506fc51ccac9c2fd@gmx.net>
Applied in commit 1e275d939d45ecc1d96957a353dc639d28aefb52
Author: Elektra Wagenrad <onelektra@gmx.net>
Date: Thu Mar 21 15:57:45 2013 +0100
Either all or no source file should #define _GNU_SOURCE.
Thanks to Sven Eckelmann and Michael Tautschnig for reporting and fixing.
Signed-off-by: Elektra Wagenrad <onelektra@gmx.net>
Thanks, everyone!
Cheers,
Elektra
> Subject: [PATCH] Either all or no source file should #define _GNU_SOURCE.
>
> Thanks to Sven Eckelmann and Michael Tautschnig for reporting and fixes.
>
> ---
> Makefile | 1 +
> linux/route.c | 1 -
> posix/unix_socket.c | 1 -
> 3 files changed, 1 insertion(+), 2 deletions(-)
>
> diff --git a/Makefile b/Makefile
> index fe1f094..ce1e198 100755
> --- a/Makefile
> +++ b/Makefile
> @@ -27,6 +27,7 @@ LINUX_OBJ = linux/route.o linux/tun.o linux/kernel.o
>
> ifeq ($(UNAME),Linux)
> OS_OBJ = $(LINUX_OBJ) $(POSIX_OBJ)
> +CPPFLAGS += -D_GNU_SOURCE
> endif
>
> OBJ = batman.o originator.o schedule.o list-batman.o allocate.o bitarray.o hash.o profile.o ring_buffer.o hna.o $(OS_OBJ)
> diff --git a/linux/route.c b/linux/route.c
> index 119ebb2..bceac95 100644
> --- a/linux/route.c
> +++ b/linux/route.c
> @@ -21,7 +21,6 @@
>
>
>
> -#define _GNU_SOURCE
> #include <sys/ioctl.h>
> #include <arpa/inet.h> /* inet_ntop() */
> #include <errno.h>
> diff --git a/posix/unix_socket.c b/posix/unix_socket.c
> index 5bed217..02a0a3a 100644
> --- a/posix/unix_socket.c
> +++ b/posix/unix_socket.c
> @@ -21,7 +21,6 @@
>
>
>
> -#define _GNU_SOURCE
> #include <sys/time.h>
> #include <stdio.h>
> #include <fcntl.h>
> --
> 1.7.9.5
--
Elektra <onelektra@gmx.net>
next prev parent reply other threads:[~2013-03-21 15:20 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20130320175154.GT41481@l04.local>
2013-03-21 8:24 ` [B.A.T.M.A.N.] Bug#703540: Inconsistent use of _GNU_SOURCE Sven Eckelmann
2013-03-21 15:16 ` [B.A.T.M.A.N.] [PATCH] batmand: Either all or no source file should #define _GNU_SOURCE Elektra
2013-03-21 15:20 ` Elektra [this message]
2013-03-29 11:48 ` [B.A.T.M.A.N.] Bug#703540: Inconsistent use of _GNU_SOURCE Michael Tautschnig
2013-03-29 12:37 ` Antonio Quartulli
2013-04-02 9:10 ` Sven Eckelmann
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=20130321162007.3e9836dbe3b881a8e2788741@gmx.net \
--to=onelektra@gmx.net \
--cc=b.a.t.m.a.n@lists.open-mesh.org \
--cc=elektra@villagetelco.org \
/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;
as well as URLs for NNTP newsgroup(s).