From eb24670aff2fd681084b6aef378ae7d45db33515 Mon Sep 17 00:00:00 2001
From: "Kevin P. Fleming" <kpfleming@digium.com>
Date: Tue, 8 Nov 2005 03:48:02 +0000
Subject: [PATCH] header cleanup

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@7021 65c4cc65-6c06-0410-ace0-fbb531ad65f3
---
 ChangeLog                 | 3 +++
 cryptostub.c              | 4 ++++
 include/asterisk/crypto.h | 3 ---
 3 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 8e5337b7d0..9981003a5e 100755
--- a/ChangeLog
+++ b/ChangeLog
@@ -4,6 +4,9 @@
 
 2005-11-07  Kevin P. Fleming  <kpfleming@digium.com>
 
+	* cryptostub.c: include necessary headers
+	* include/asterisk/crypto.h: don't include unnecessary headers
+
 	* manager.c (action_setvar): add support for setting global variables (issue #5571)
 
 	* Makefile: correct cross-compilation issue introduced in Cygwin patches (issue #5572)
diff --git a/cryptostub.c b/cryptostub.c
index 99fbe3e451..4d2809e0de 100755
--- a/cryptostub.c
+++ b/cryptostub.c
@@ -16,7 +16,11 @@
  * at the top of the source tree.
  */
 
+#include <unistd.h>
+#include <stdlib.h>
+
 #include "asterisk/crypto.h"
+#include "asterisk/logger.h"
 
 /* Hrm, I wonder if the compiler is smart enough to only create two functions
    for all these...  I could force it to only make two, but those would be some
diff --git a/include/asterisk/crypto.h b/include/asterisk/crypto.h
index 2463ba4ed8..d0f852caf0 100755
--- a/include/asterisk/crypto.h
+++ b/include/asterisk/crypto.h
@@ -23,9 +23,6 @@
 #ifndef _ASTERISK_CRYPTO_H
 #define _ASTERISK_CRYPTO_H
 
-#include "asterisk/channel.h"
-#include "asterisk/file.h"
-
 #if defined(__cplusplus) || defined(c_plusplus)
 extern "C" {
 #endif
-- 
GitLab