diff options
author | rizzo <rizzo@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-11-16 20:28:19 +0000 |
---|---|---|
committer | rizzo <rizzo@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-11-16 20:28:19 +0000 |
commit | 977ebbedcd6dbc8fd65c3cc7ca9f7b05c2a9d361 (patch) | |
tree | 21c0054559e3572b064a07cfb3a035133acf7592 /main/asterisk.c | |
parent | 3957f706bbe5fee83e60e526ec7920811102150a (diff) |
remove duplicate headers.
Properly check for netdb.h (there is actually tens of places to fix)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89335 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main/asterisk.c')
-rw-r--r-- | main/asterisk.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/main/asterisk.c b/main/asterisk.c index a94972cc5..1f03484d2 100644 --- a/main/asterisk.c +++ b/main/asterisk.c @@ -70,7 +70,6 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$") #include <sys/socket.h> #include <sys/un.h> #include <sys/wait.h> -#include <string.h> #include <errno.h> #include <ctype.h> #include <sys/resource.h> @@ -88,13 +87,13 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$") #endif /* linux */ #include <regex.h> -#if defined(__FreeBSD__) || defined( __NetBSD__ ) || defined(SOLARIS) +#ifdef HAVE_NETDB_H #include <netdb.h> +#endif #if defined(SOLARIS) int daemon(int, int); /* defined in libresolv of all places */ #include <sys/loadavg.h> #endif -#endif #include "asterisk/logger.h" #include "asterisk/options.h" |