issue #5658, different fix
authorKevin P. Fleming <kpfleming@digium.com>
Wed, 9 Nov 2005 02:04:27 +0000 (02:04 +0000)
committerKevin P. Fleming <kpfleming@digium.com>
Wed, 9 Nov 2005 02:04:27 +0000 (02:04 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@7041 65c4cc65-6c06-0410-ace0-fbb531ad65f3

ChangeLog
include/asterisk/file.h

index efd8ae7..1270207 100755 (executable)
--- 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)
index 147a705..e525701 100755 (executable)
 #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>