[Asterisk-cvs] asterisk ChangeLog,1.2,1.3 utils.c,1.81,1.82

kpfleming kpfleming
Tue Nov 1 15:34:31 CST 2005


Update of /usr/cvsroot/asterisk
In directory mongoose.digium.com:/tmp/cvs-serv16133

Modified Files:
	ChangeLog utils.c 
Log Message:
issue #5549


Index: ChangeLog
===================================================================
RCS file: /usr/cvsroot/asterisk/ChangeLog,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- ChangeLog	1 Nov 2005 20:09:09 -0000	1.2
+++ ChangeLog	1 Nov 2005 20:26:29 -0000	1.3
@@ -1,5 +1,7 @@
 2005-11-01  Kevin P. Fleming  <kpfleming at digium.com>
 
+	* utils.c (getloadavg): change to using _BSD_SOURCE as the indicator for whether this function is present or not (issue #5549)
+	
 	* include/asterisk/utils.h (ast_slinear_saturated_add): force to be inlined whenever possible
 	(ast_slinear_saturated_multiply): same
 	(ast_slinear_saturated_divide): same

Index: utils.c
===================================================================
RCS file: /usr/cvsroot/asterisk/utils.c,v
retrieving revision 1.81
retrieving revision 1.82
diff -u -d -r1.81 -r1.82
--- utils.c	31 Oct 2005 21:25:21 -0000	1.81
+++ utils.c	1 Nov 2005 20:26:29 -0000	1.82
@@ -837,7 +837,7 @@
 }
 #endif /* !HAVE_STRTOQ */
 
-#if (!defined(getloadavg))
+#if (!defined(_BSD_SOURCE))
 #ifdef linux
 /* Alternative method of getting load avg on Linux only */
 int getloadavg(double *list, int nelem)
@@ -871,7 +871,7 @@
 	return -1;
 }
 #endif /* linux */
-#endif /* !defined(getloadavg) */
+#endif /* !defined(_BSD_SOURCE) */
 
 char *ast_process_quotes_and_slashes(char *start, char find, char replace_with)
 {




More information about the svn-commits mailing list