aboutsummaryrefslogtreecommitdiffstats
path: root/include/asterisk/file.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/asterisk/file.h')
-rw-r--r--include/asterisk/file.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/include/asterisk/file.h b/include/asterisk/file.h
index a93b58915..994b7b943 100644
--- a/include/asterisk/file.h
+++ b/include/asterisk/file.h
@@ -23,13 +23,11 @@
#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"
+#ifdef HAVE_FCNTL_H
#include <fcntl.h>
+#endif
#if defined(__cplusplus) || defined(c_plusplus)
extern "C" {