RPM Package Manager, CVS Repository http://rpm5.org/cvs/ ____________________________________________________________________________
Server: rpm5.org Name: Ralf S. Engelschall Root: /v/rpm/cvs Email: [EMAIL PROTECTED] Module: rpm Date: 30-Jul-2008 11:44:22 Branch: HEAD Handle: 2008073009442200 Modified files: rpm/tools rpmspecdump.c Log: get rid of compile-time warnings Summary: Revision Changes Path 2.3 +4 -4 rpm/tools/rpmspecdump.c ____________________________________________________________________________ patch -p0 <<'@@ .' Index: rpm/tools/rpmspecdump.c ============================================================================ $ cvs diff -u -r2.2 -r2.3 rpmspecdump.c --- rpm/tools/rpmspecdump.c 29 Jul 2008 15:37:44 -0000 2.2 +++ rpm/tools/rpmspecdump.c 30 Jul 2008 09:44:22 -0000 2.3 @@ -1,5 +1,5 @@ /* - * $Id: rpmspecdump.c,v 2.2 2008/07/29 15:37:44 arekm Exp $ + * $Id: rpmspecdump.c,v 2.3 2008/07/30 09:44:22 rse Exp $ * * Prints out following information in same format as %dump for builder: * $ rpmbuild --nodigest --nosignature --nobuild -bp --define 'prep %{echo:dummy: PACKAGE_NAME %{name} }%dump' qemu.spec 2>&1 | awk '$2 ~ /^SOURCEURL/ {print} $2 ~ /^PATCHURL/ {print} $2 ~ /^nosource/ {print} $2 ~ /^PACKAGE_/ {print}' @@ -62,10 +62,10 @@ * - initial version, based on getdeps.c */ -#define _GNU_SOURCE +#include "system.h" -#ifdef HAVE_CONFIG_H -# include <config.h> +#if defined(__linux__) +#define _GNU_SOURCE #endif #include <getopt.h> @@ . ______________________________________________________________________ RPM Package Manager http://rpm5.org CVS Sources Repository rpm-cvs@rpm5.org