From: Stephen Hemminger <shemminger@vyatta.com>
To: Jan Engelhardt <jengelh@medozas.de>
Cc: Linux Networking Developer Mailing List <netdev@vger.kernel.org>
Subject: Re: iproute2: avoid use of implicit declarations
Date: Tue, 3 Jan 2012 13:57:24 -0800 [thread overview]
Message-ID: <20120103135724.0e23e797@nehalam.linuxnetplumber.net> (raw)
In-Reply-To: <alpine.LNX.2.01.1112312321370.6978@frira.zrqbmnf.qr>
On Sat, 31 Dec 2011 23:22:05 +0100 (CET)
Jan Engelhardt <jengelh@medozas.de> wrote:
> From: Jan Engelhardt <jengelh@medozas.de>
> Date: 2011-12-31 23:16:27.428349795 +0100
>
> gcc -DLIBDIR=\"/usr/lib64\" -D_GNU_SOURCE -fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -g -Wstrict-prototypes -fPIC -DXT_LIB_DIR=\"/usr/lib64/xtables\" -I../include -DRESOLVE_HOSTNAMES -DLIBDIR=\"/usr/lib64\" -fPIC -c -o ipx_pton.o ipx_pton.c
> In file included from ../include/utils.h:8:0,
> from ipx_ntop.c:5:
> ../include/libnetlink.h: In function 'rta_getattr_u64':
> ../include/libnetlink.h:84:2: warning: implicit declaration of function 'memcpy'
> ../include/libnetlink.h:84:2: warning: incompatible implicit declaration of built-in function 'memcpy'
>
> diff --git a/include/libnetlink.h b/include/libnetlink.h
> index b237579..b0656ce 100644
> --- a/include/libnetlink.h
> +++ b/include/libnetlink.h
> @@ -1,6 +1,7 @@
> #ifndef __LIBNETLINK_H__
> #define __LIBNETLINK_H__ 1
>
> +#include <string.h>
> #include <asm/types.h>
> #include <linux/netlink.h>
> #include <linux/rtnetlink.h>
Applied.
next prev parent reply other threads:[~2012-01-03 21:57 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-12-31 22:17 iproute2: proper detection of libxtables position and flags Jan Engelhardt
2011-12-31 22:18 ` iproute2: fix calling up the xt action Jan Engelhardt
2011-12-31 22:22 ` iproute2: avoid use of implicit declarations Jan Engelhardt
2012-01-03 21:57 ` Stephen Hemminger [this message]
2012-01-03 21:47 ` iproute2: proper detection of libxtables position and flags Stephen Hemminger
2012-01-03 22:18 ` Jan Engelhardt
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=20120103135724.0e23e797@nehalam.linuxnetplumber.net \
--to=shemminger@vyatta.com \
--cc=jengelh@medozas.de \
--cc=netdev@vger.kernel.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).