aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2005-11-09 02:04:27 +0000
committerkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2005-11-09 02:04:27 +0000
commit6bee75761a1fe5589289b0d1c49f793c60b3c2ed (patch)
treed8c124410e5157c81074fc9fcabc042d7aca99b8
parent22a3a5d9f8e4470418c575252edd6c8ffb9d47e1 (diff)
issue #5658, different fix
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7041 f38db490-d61c-443f-a65b-d21fe96a405b
-rwxr-xr-xChangeLog2
-rwxr-xr-xinclude/asterisk/file.h4
2 files changed, 6 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index efd8ae742..1270207c7 100755
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,7 @@
2005-11-08 Kevin P. Fleming <kpfleming@digium.com>
+ * include/asterisk/file.h: add test to ensure that stdio.h is included before this file (issue #5658)
+
* res/res_odbc.c (odbc_prepare_and_execute): add new API call for use to properly handle prepared statements across server disconnects (issue #5563)
* pbx.c (pbx_substitute_variables_helper_full): use already-substituted buffer for parsing variable name (issue #5664)
diff --git a/include/asterisk/file.h b/include/asterisk/file.h
index 147a705d8..e52570183 100755
--- a/include/asterisk/file.h
+++ b/include/asterisk/file.h
@@ -23,6 +23,10 @@
#ifndef _ASTERISK_FILE_H
#define _ASTERISK_FILE_H
+#ifndef stdin
+#error You must include stdio.h before file.h!
+#endif /* !stdin */
+
#include "asterisk/channel.h"
#include "asterisk/frame.h"
#include <fcntl.h>