[Home]

Summary:ASTERISK-10811: network.h needs compiler.h
Reporter:Simon Perreault (sperreault)Labels:
Date Opened:2007-11-19 10:21:05.000-0600Date Closed:2011-06-07 14:08:07
Priority:MinorRegression?No
Status:Closed/CompleteComponents:. I did not set the category correctly.
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:
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
Comments:By: Luigi Rizzo (rizzo) 2007-11-19 10:52:48.000-0600

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.

By: Simon Perreault (sperreault) 2007-11-19 10:56:42.000-0600

Could you please offer a specific reference to this official policy?

By: Luigi Rizzo (rizzo) 2007-11-19 12:08:24.000-0600

see ASTERISK-10815