Remove the config.h kludge and override vasprintf detection via HAVE_VASPRINTF.

This commit is contained in:
Juan RP
2014-01-20 18:50:33 +01:00
parent 16fc064aef
commit 5eea259c13
18 changed files with 36 additions and 58 deletions
-4
View File
@@ -34,10 +34,6 @@
#include <stdarg.h>
#include <errno.h>
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include "xbps_api_impl.h"
#ifdef __clang__
-3
View File
@@ -37,9 +37,6 @@
#include <ctype.h>
#include "xbps_api_impl.h"
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#define PKG_PATTERN_MAX 1024
+3 -1
View File
@@ -29,13 +29,15 @@
#define _BSD_SOURCE /* for vfork and chroot */
#include <sys/types.h>
#include <unistd.h>
#include <sys/wait.h>
#include <errno.h>
#include <stdarg.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#undef _BSD_SOURCE
#include "xbps_api_impl.h"
static int
+2 -3
View File
@@ -30,9 +30,8 @@
* $FreeBSD: common.c,v 1.53 2007/12/19 00:26:36 des Exp $
*/
#if HAVE_CONFIG_H
#include "config.h"
#endif
#include "compat.h"
#ifndef NETBSD
#include <nbcompat.h>
#endif
+2 -3
View File
@@ -30,9 +30,8 @@
* $FreeBSD: fetch.c,v 1.41 2007/12/19 00:26:36 des Exp $
*/
#if HAVE_CONFIG_H
#include "config.h"
#endif
#include "compat.h"
#ifndef NETBSD
#include <nbcompat.h>
#endif
+2 -3
View File
@@ -30,9 +30,8 @@
* $FreeBSD: file.c,v 1.18 2007/12/14 10:26:58 des Exp $
*/
#if HAVE_CONFIG_H
#include "config.h"
#endif
#include "compat.h"
#ifndef NETBSD
#include <nbcompat.h>
#endif
+2 -3
View File
@@ -57,9 +57,8 @@
*
*/
#if HAVE_CONFIG_H
#include "config.h"
#endif
#include "compat.h"
#ifndef NETBSD
#include <nbcompat.h>
#endif
+2 -3
View File
@@ -63,9 +63,8 @@
* SUCH DAMAGE.
*/
#if HAVE_CONFIG_H
#include "config.h"
#endif
#include "compat.h"
#ifndef NETBSD
#include <nbcompat.h>
#endif
-1
View File
@@ -29,7 +29,6 @@
#include <errno.h>
#include "xbps_api_impl.h"
/**
* @file lib/package_configure.c
* @brief Package configuration routines
-4
View File
@@ -23,10 +23,6 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include <sys/stat.h>
#include <stdio.h>
#include <stdbool.h>
+1 -3
View File
@@ -29,9 +29,7 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include "compat.h"
#include <prop/prop_object.h>
#include "prop_object_impl.h"
-4
View File
@@ -27,10 +27,6 @@
# define _GNU_SOURCE /* for vasprintf(3) */
#endif
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include <stdio.h>
#include <stdbool.h>
#include <stdlib.h>