[asterisk-commits] mvanbaak: trunk r177913 - /trunk/main/asterisk.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Sat Feb 21 08:37:05 CST 2009


Author: mvanbaak
Date: Sat Feb 21 08:37:04 2009
New Revision: 177913

URL: http://svn.digium.com/svn-view/asterisk?view=rev&rev=177913
Log:
add extra check for sysinfo/sysctl

(closes issue #14513)
Reported by: snuffy
Patches:
      bug14513_fixsysinfo.diff uploaded by snuffy (license 35)

Modified:
    trunk/main/asterisk.c

Modified: trunk/main/asterisk.c
URL: http://svn.digium.com/svn-view/asterisk/trunk/main/asterisk.c?view=diff&rev=177913&r1=177912&r2=177913
==============================================================================
--- trunk/main/asterisk.c (original)
+++ trunk/main/asterisk.c Sat Feb 21 08:37:04 2009
@@ -554,6 +554,7 @@
 }
 #endif
 
+#if defined(HAVE_SYSINFO) || defined(HAVE_SYSCTL)
 /*! \brief Give an overview of system statistics */
 static char *handle_show_sysinfo(struct ast_cli_entry *e, int cmd, struct ast_cli_args *a)
 {
@@ -647,6 +648,7 @@
 	ast_cli(a->fd, "  Number of Processes:       %d \n\n", nprocs);
 	return CLI_SUCCESS;
 }
+#endif
 
 struct profile_entry {
 	const char *name;




More information about the asterisk-commits mailing list