RPM Community Forums

Mailing List Message of <rpm-cvs>

[CVS] RPM: popt/ configure.ac popthelp.c

From: Bernhard Rosenkraenzer <bero@rpm5.org>
Date: Sat 03 Nov 2007 - 23:18:40 CET
Message-Id: <20071103221840.D9A0334847A@rpm5.org>
  RPM Package Manager, CVS Repository
  http://rpm5.org/cvs/
  ____________________________________________________________________________

  Server: rpm5.org                         Name:   Bernhard Rosenkraenzer
  Root:   /v/rpm/cvs                       Email:  bero@rpm5.org
  Module: popt                             Date:   03-Nov-2007 23:18:40
  Branch: HEAD                             Handle: 2007110322184000

  Modified files:
    popt                    configure.ac popthelp.c

  Log:
    Make it compile for libc implementations that need <alloca.h> for alloca()
    
    Submitted by: bero

  Summary:
    Revision    Changes     Path
    1.29        +1  -1      popt/configure.ac
    1.65        +5  -0      popt/popthelp.c
  ____________________________________________________________________________

  patch -p0 <<'@@ .'
  Index: popt/configure.ac
  ============================================================================
  $ cvs diff -u -r1.28 -r1.29 configure.ac
  --- popt/configure.ac	24 Aug 2007 13:14:41 -0000	1.28
  +++ popt/configure.ac	3 Nov 2007 22:18:40 -0000	1.29
  @@ -68,7 +68,7 @@
   fi
   AC_SUBST(MARK64)
   
  -AC_CHECK_HEADERS(float.h libintl.h mcheck.h unistd.h langinfo.h)
  +AC_CHECK_HEADERS(float.h libintl.h mcheck.h unistd.h langinfo.h alloca.h)
   
   # For some systems we know that we have ld_version scripts.
   # Use it then as default.
  @@ .
  patch -p0 <<'@@ .'
  Index: popt/popthelp.c
  ============================================================================
  $ cvs diff -u -r1.64 -r1.65 popthelp.c
  --- popt/popthelp.c	25 Aug 2007 00:54:57 -0000	1.64
  +++ popt/popthelp.c	3 Nov 2007 22:18:40 -0000	1.65
  @@ -20,6 +20,11 @@
   #include <wchar.h>			/* for mbsrtowcs */
   /*@access mbstate_t @*/
   #endif
  +
  +#ifdef HAVE_ALLOCA_H
  +#include <alloca.h>
  +#endif
  +
   #include "poptint.h"
   
   /*@access poptContext@*/
  @@ .
Received on Sat Nov 3 23:18:40 2007
Driven by Jeff Johnson and the RPM project team.
Hosted by OpenPKG and Ralf S. Engelschall.
Powered by FreeBSD and OpenPKG.