From: Martin Mares Date: Sun, 4 Feb 2007 21:13:48 +0000 (+0100) Subject: alloca() needs . X-Git-Tag: v3.0.0~15 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=9de2768c54a60c8adfe58958dfc0c3b5d5965ff7;p=pciutils.git alloca() needs . --- diff --git a/ChangeLog b/ChangeLog index c786ebf..3d536ba 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2007-02-04 Martin Mares + + * lspci.c: alloca() needs . + 2006-09-17 Martin Mares * lib/dump.c: Fixed a couple of bugs in the dump backend which caused diff --git a/lspci.c b/lspci.c index 1f3b037..9c6a0c2 100644 --- a/lspci.c +++ b/lspci.c @@ -1,7 +1,7 @@ /* * The PCI Utilities -- List All PCI Devices * - * Copyright (c) 1997--2006 Martin Mares + * Copyright (c) 1997--2007 Martin Mares * * Can be freely distributed and used under the terms of the GNU GPL. */ @@ -59,7 +59,9 @@ static struct pci_access *pacc; * use alloca() much. */ -#ifndef __GNUC__ +#ifdef __GNUC__ +#include +#else #undef alloca #define alloca xmalloc #endif