summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--configure.ac1
-rw-r--r--pkg.c12
2 files changed, 2 insertions, 11 deletions
diff --git a/configure.ac b/configure.ac
index fd87128..9f3d4ba 100644
--- a/configure.ac
+++ b/configure.ac
@@ -24,7 +24,6 @@ dnl Check for headers
AC_CHECK_HEADERS([dirent.h unistd.h sys/wait.h malloc.h])
dnl Check for library functions
-AC_FUNC_ALLOCA
AC_CHECK_FUNCS(setresuid setreuid,break)
diff --git a/pkg.c b/pkg.c
index 551b867..9695e3e 100644
--- a/pkg.c
+++ b/pkg.c
@@ -25,14 +25,6 @@
#include "pkg.h"
#include "parse.h"
-#ifdef HAVE_ALLOCA_H
-# include <alloca.h>
-#else
-# ifdef _AIX
-# pragma alloca
-# endif
-#endif
-
#ifdef HAVE_MALLOC_H
# include <malloc.h>
#endif
@@ -1276,8 +1268,8 @@ static int rpmvercmp(const char * a, const char * b) {
/* easy comparison to see if versions are identical */
if (!strcmp(a, b)) return 0;
- str1 = alloca(strlen(a) + 1);
- str2 = alloca(strlen(b) + 1);
+ str1 = g_alloca(strlen(a) + 1);
+ str2 = g_alloca(strlen(b) + 1);
strcpy(str1, a);
strcpy(str2, b);