From 0aa9429c9603ca33fde53c9252f9875705e3f516 Mon Sep 17 00:00:00 2001 From: "Kevin P. Fleming" <kpfleming@digium.com> Date: Wed, 9 Nov 2005 02:04:27 +0000 Subject: [PATCH] issue #5658, different fix git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@7041 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- ChangeLog | 2 ++ include/asterisk/file.h | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/ChangeLog b/ChangeLog index efd8ae7422..1270207c7a 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 147a705d8e..e525701837 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> -- GitLab