Compilation fix for GNU/Linux

This commit is contained in:
Pierre Pronchery 2012-03-22 02:40:35 +00:00
parent 1538aed853
commit 1fc7efdd5d

View File

@ -26,8 +26,8 @@
* SUCH DAMAGE. */
#include <sys/param.h>
#include <sys/param.h>
#include <stdarg.h>
#include <stdlib.h>
#include <stdio.h>
@ -36,6 +36,9 @@
#include <errno.h>
#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);