From 1fc7efdd5d00b1e73cfb5597e23cd8b01b9370d6 Mon Sep 17 00:00:00 2001 From: Pierre Pronchery Date: Thu, 22 Mar 2012 02:40:35 +0000 Subject: [PATCH] Compilation fix for GNU/Linux --- tools/pkg-config.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/tools/pkg-config.c b/tools/pkg-config.c index 18723d3..52dc407 100644 --- a/tools/pkg-config.c +++ b/tools/pkg-config.c @@ -26,8 +26,8 @@ * SUCH DAMAGE. */ -#include +#include #include #include #include @@ -36,6 +36,9 @@ #include #include "../config.h" +#ifndef __unused +# define __unused +#endif #ifndef PREFIX # define PREFIX "/usr/local" #endif @@ -56,6 +59,7 @@ #define PKG_PRINT_REQUIRES (1 << 13) #define PKG_PRINT_REQUIRES_PRIV (1 << 14) + /* pkg-config without glib without pkg-config without glib without pkg-config */ /* private */ /* types */ @@ -117,6 +121,7 @@ typedef struct _PkgConfig PkgList *pkgs; } PkgConfig; + /* prototypes */ static int _pkgconfig(PkgConfig * pc, int pkgc, char * pkgv[]); static int _pkgconfig_error(int ret, char const * format, ...); @@ -140,7 +145,7 @@ static int _usage(int brief); /* functions */ /* pkgconfig */ -static Pkg* _pkg_new(Pkg **pkg, char const * pkgname); +static Pkg * _pkg_new(Pkg **pkg, char const * pkgname); static void _pkgconfig_variable_delete(PkgConfigVariable *p); static FILE * _pkgconfig_open(PkgConfig * pc, char const * pkg); static int _pkgconfig_parse(PkgConfig * p, FILE * fp);