diff options
author | kpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-06-09 20:26:25 +0000 |
---|---|---|
committer | kpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-06-09 20:26:25 +0000 |
commit | 926f67f6828f49103b6c204fe6da0641465e4dad (patch) | |
tree | b3a9bae525ea865191b97b02e3e915d5db52de87 /include | |
parent | 93759871fc4268063f64070935ec5a145ca0f2ed (diff) |
various minor portability fixes (mostly from tholo for OpenBSD)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@33350 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'include')
-rw-r--r-- | include/asterisk/endian.h | 3 | ||||
-rw-r--r-- | include/asterisk/stringfields.h | 4 |
2 files changed, 2 insertions, 5 deletions
diff --git a/include/asterisk/endian.h b/include/asterisk/endian.h index 55108b4e1..98bff15a2 100644 --- a/include/asterisk/endian.h +++ b/include/asterisk/endian.h @@ -33,9 +33,6 @@ #ifdef __linux__ #include <endian.h> #elif defined(__OpenBSD__) || defined(__FreeBSD__) || defined(__NetBSD__) || defined(__APPLE__) -#if defined(__OpenBSD__) -#include <machine/types.h> -#endif /* __OpenBSD__ */ #include <machine/endian.h> #define __BYTE_ORDER BYTE_ORDER #define __LITTLE_ENDIAN LITTLE_ENDIAN diff --git a/include/asterisk/stringfields.h b/include/asterisk/stringfields.h index cb364d608..5a9a58f82 100644 --- a/include/asterisk/stringfields.h +++ b/include/asterisk/stringfields.h @@ -171,7 +171,7 @@ void __ast_string_field_index_build(struct ast_string_field_mgr *mgr, \brief Declare a string field \param name The field name */ -#define AST_STRING_FIELD(name) const ast_string_field name; +#define AST_STRING_FIELD(name) const ast_string_field name /*! \brief Declare the fields needed in a structure @@ -181,7 +181,7 @@ void __ast_string_field_index_build(struct ast_string_field_mgr *mgr, ast_string_field __begin_field[0]; \ field_list \ ast_string_field __end_field[0]; \ - struct ast_string_field_mgr __field_mgr; + struct ast_string_field_mgr __field_mgr /*! \brief Get the number of string fields in a structure |