[Nagiosplug-checkins] CVS: nagiosplug/plugins common.h,1.3,1.4

Karl DeBisschop kdebisschop at users.sourceforge.net
Mon Jul 21 04:54:13 CEST 2003


Update of /cvsroot/nagiosplug/nagiosplug/plugins
In directory sc8-pr-cvs1:/tmp/cvs-serv29696/plugins

Modified Files:
	common.h 
Log Message:
test GNU_SOURCE and include features.h if present to clear warning about asprintf definition

Index: common.h
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/plugins/common.h,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -r1.3 -r1.4
*** common.h	9 Apr 2003 03:44:29 -0000	1.3
--- common.h	21 Jul 2003 11:53:26 -0000	1.4
***************
*** 31,39 ****
   *****************************************************************************/
  
  #include <stdio.h>							/* obligatory includes */
  #include <stdlib.h>
  #include <errno.h>
- 
- #include "config.h"
  
  #ifdef HAVE_STRINGS_H
--- 31,43 ----
   *****************************************************************************/
  
+ #include "config.h"
+ 
+ #ifdef HAVE_FEATURES_H
+ #include <features.h>
+ #endif
+ 
  #include <stdio.h>							/* obligatory includes */
  #include <stdlib.h>
  #include <errno.h>
  
  #ifdef HAVE_STRINGS_H





More information about the Commits mailing list