From 9cdd66dd01aa8fdc46bb25cc862307eb593c44ae Mon Sep 17 00:00:00 2001 From: Russell Bryant Date: Thu, 8 Jun 2006 20:49:59 +0000 Subject: [PATCH] always include inttypes.h and sys/types.h in asterisk/compat.h to fix a build problem on mac and place asterisk.h back at the top of menuselect.c git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@33114 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- build_tools/menuselect.c | 4 ++-- include/asterisk/compat.h | 15 +++------------ 2 files changed, 5 insertions(+), 14 deletions(-) diff --git a/build_tools/menuselect.c b/build_tools/menuselect.c index 9e922f93a9..d2427359f3 100644 --- a/build_tools/menuselect.c +++ b/build_tools/menuselect.c @@ -24,13 +24,13 @@ * \brief A menu-driven system for Asterisk module selection */ +#include "asterisk.h" + #include #include #include #include -#include "asterisk.h" - #include "mxml/mxml.h" #include "menuselect.h" diff --git a/include/asterisk/compat.h b/include/asterisk/compat.h index cb36784499..8c2c6c4e68 100644 --- a/include/asterisk/compat.h +++ b/include/asterisk/compat.h @@ -16,6 +16,9 @@ #ifndef _COMPAT_H #define _COMPAT_H +#include +#include + #ifndef HAVE_STRSEP char* strsep(char** str, const char* delims); #endif @@ -81,18 +84,6 @@ typedef unsigned int u_int32_t; #endif #endif /* __CYGWIN__ */ -#ifdef __linux__ -#include -#endif - -#ifdef __Darwin__ -#include -#endif - -#ifdef __FreeBSD__ -#include -#endif - #ifdef __CYGWIN__ typedef unsigned long long uint64_t; #endif