From: leslie <unknown>
Date: Tue, 1 Jan 2008 13:25:44 +0000 (+0100)
Subject: improve fix for alloca include
X-Git-Tag: 0.8.7~33
X-Git-Url: http://www.vanbest.org/gitweb/?a=commitdiff_plain;h=5317a1aa3ff4b2cac7756ce7bf6361399d910bcc;p=sasc-ng.git

improve fix for alloca include
---

diff --git a/misc.h b/misc.h
index b02fd39..dc5868f 100644
--- a/misc.h
+++ b/misc.h
@@ -20,6 +20,8 @@
 #ifndef ___MISC_H
 #define ___MISC_H
 
+#include <alloca.h>
+
 // ----------------------------------------------------------------
 
 #define WORD(buffer,index,mask) (((buffer[(index)]<<8) + buffer[(index)+1]) & mask)
diff --git a/system-common.c b/system-common.c
index 8830b63..eec12fe 100644
--- a/system-common.c
+++ b/system-common.c
@@ -18,7 +18,6 @@
  */
 
 #include <stdio.h>
-#include <stdlib.h>
 #include <string.h>
 #include <malloc.h>
 #include <ctype.h>
diff --git a/systems/cardclient/camd.c b/systems/cardclient/camd.c
index 72e4d1b..7d5c096 100644
--- a/systems/cardclient/camd.c
+++ b/systems/cardclient/camd.c
@@ -18,7 +18,6 @@
  */
 
 #include <stdio.h>
-#include <stdlib.h>
 #include <string.h>
 #include <byteswap.h>
 
diff --git a/systems/irdeto/irdeto.c b/systems/irdeto/irdeto.c
index 44860a6..9f18073 100644
--- a/systems/irdeto/irdeto.c
+++ b/systems/irdeto/irdeto.c
@@ -18,7 +18,6 @@
  */
 
 #include <stdio.h>
-#include <stdlib.h>
 #include <string.h>
 
 #include "system-common.h"