From mboxrd@z Thu Jan 1 00:00:00 1970 From: Karel Zak Date: Tue, 12 Aug 2008 22:01:47 +0000 Subject: [PATCH] usb_id: fix warning (undefined _GNU_SOURCE) Message-Id: <1218578507-28586-4-git-send-email-kzak@redhat.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit To: linux-hotplug@vger.kernel.org usb_id.c: In function ‘set_str’: usb_id.c:69 warning: implicit declaration of function ‘strnlen’ IMHO this patch is workaround. The correct way is to use "-include $(top_builddir)/config.h" as a gcc option. I'll submit a patch with this solution later. Signed-off-by: Karel Zak --- extras/usb_id/usb_id.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/extras/usb_id/usb_id.c b/extras/usb_id/usb_id.c index 5b78b97..53a952b 100644 --- a/extras/usb_id/usb_id.c +++ b/extras/usb_id/usb_id.c @@ -11,6 +11,8 @@ * Free Software Foundation version 2 of the License. */ +#include "../../config.h" + #include #include #include -- 1.5.5.1