[asterisk-bugs] [Asterisk 0011297]: network.h needs compiler.h

noreply at bugs.digium.com noreply at bugs.digium.com
Mon Nov 19 10:52:48 CST 2007


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=11297 
====================================================================== 
Reported By:                sperreault
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   11297
Category:                   . I did not set the category correctly.
Reproducibility:            always
Severity:                   tweak
Priority:                   normal
Status:                     new
Asterisk Version:            SVN 
SVN Branch (only for SVN checkouts, not tarball releases):  trunk 
SVN Revision (number only!): 89420 
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             11-19-2007 10:21 CST
Last Modified:              11-19-2007 10:52 CST
====================================================================== 
Summary:                    network.h needs compiler.h
Description: 
network.h needs compiler.h for "force_inline".

Index: include/asterisk/network.h
===================================================================
--- include/asterisk/network.h  (revision 89420)
+++ include/asterisk/network.h  (working copy)
@@ -26,6 +26,8 @@
 #ifndef _ASTERISK_NETWORK_H
 #define _ASTERISK_NETWORK_H

+#include <asterisk/compiler.h>
+
 #if defined(__cplusplus) || defined(c_plusplus)
 extern "C" {
 #endif

====================================================================== 

---------------------------------------------------------------------- 
 rizzo - 11-19-07 10:52  
---------------------------------------------------------------------- 
which file gives you the problem ?

In any case, every file should include either "asterisk.h" or
"asterisk/compat.h" before everything else.
These in turn should resolve all OS and compiler dependencies.
So i think the proper fix is on the individual file(s) causing problems
rather than on this header. 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
11-19-07 10:52  rizzo          Note Added: 0073964                          
======================================================================




More information about the asterisk-bugs mailing list