always include inttypes.h and sys/types.h in asterisk/compat.h to fix a build
authorRussell Bryant <russell@russellbryant.com>
Thu, 8 Jun 2006 20:49:59 +0000 (20:49 +0000)
committerRussell Bryant <russell@russellbryant.com>
Thu, 8 Jun 2006 20:49:59 +0000 (20:49 +0000)
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
include/asterisk/compat.h

index 9e922f9..d242735 100644 (file)
  * \brief A menu-driven system for Asterisk module selection
  */
 
+#include "asterisk.h"
+
 #include <stdlib.h>
 #include <stdio.h>
 #include <string.h>
 #include <unistd.h>
 
-#include "asterisk.h"
-
 #include "mxml/mxml.h"
 #include "menuselect.h"
 
index cb36784..8c2c6c4 100644 (file)
@@ -16,6 +16,9 @@
 #ifndef _COMPAT_H
 #define _COMPAT_H
 
+#include <inttypes.h>
+#include <sys/types.h>
+
 #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 <inttypes.h>
-#endif
-
-#ifdef __Darwin__
-#include <inttypes.h>
-#endif
-
-#ifdef __FreeBSD__
-#include <sys/types.h>
-#endif
-
 #ifdef __CYGWIN__
 typedef unsigned long long uint64_t;
 #endif