From 9de2768c54a60c8adfe58958dfc0c3b5d5965ff7 Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Sun, 4 Feb 2007 22:13:48 +0100 Subject: [PATCH] alloca() needs . --- ChangeLog | 4 ++++ lspci.c | 6 ++++-- 2 files changed, 8 insertions(+), 2 deletions(-) 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 -- 2.39.2