From c3df54aa53b26142113d5ee47c82b365b0762cbc Mon Sep 17 00:00:00 2001
From: Martin Stjernholm <mast@lysator.liu.se>
Date: Mon, 6 Oct 2008 19:00:00 +0200
Subject: [PATCH] Centralized inclusion of stdarg.h. This avoids compilation
 errors in rtldebug mode on some platforms.

Rev: src/global.h:1.113
Rev: src/module_support.h:1.19
Rev: src/pike_error.h:1.50
Rev: src/port.h:1.65
Rev: src/program.h:1.260
Rev: src/stralloc.h:1.111
---
 src/global.h         | 3 ++-
 src/module_support.h | 3 +--
 src/pike_error.h     | 4 +---
 src/port.h           | 6 +-----
 src/program.h        | 3 +--
 src/stralloc.h       | 4 +---
 6 files changed, 7 insertions(+), 16 deletions(-)

diff --git a/src/global.h b/src/global.h
index 8d1853acc6..f780f0563b 100644
--- a/src/global.h
+++ b/src/global.h
@@ -2,7 +2,7 @@
 || This file is part of Pike. For copyright information see COPYRIGHT.
 || Pike is distributed under GPL, LGPL and MPL. See the file COPYING
 || for more information.
-|| $Id: global.h,v 1.112 2008/06/29 11:45:54 mast Exp $
+|| $Id: global.h,v 1.113 2008/10/06 17:00:00 mast Exp $
 */
 
 #ifndef GLOBAL_H
@@ -214,6 +214,7 @@ void *alloca();
 #endif
 
 #include <stdio.h>
+#include <stdarg.h>
 
 #ifdef HAVE_STDLIB_H
 #include <stdlib.h>
diff --git a/src/module_support.h b/src/module_support.h
index fa27afd57b..457c73b1eb 100644
--- a/src/module_support.h
+++ b/src/module_support.h
@@ -2,11 +2,10 @@
 || This file is part of Pike. For copyright information see COPYRIGHT.
 || Pike is distributed under GPL, LGPL and MPL. See the file COPYING
 || for more information.
-|| $Id: module_support.h,v 1.18 2005/12/04 18:58:06 nilsson Exp $
+|| $Id: module_support.h,v 1.19 2008/10/06 17:00:00 mast Exp $
 */
 
 #ifndef MODULE_SUPPORT_H
-#include <stdarg.h>
 
 #include "module.h"
 
diff --git a/src/pike_error.h b/src/pike_error.h
index cf4697e586..d7f15b61ce 100644
--- a/src/pike_error.h
+++ b/src/pike_error.h
@@ -2,14 +2,12 @@
 || This file is part of Pike. For copyright information see COPYRIGHT.
 || Pike is distributed under GPL, LGPL and MPL. See the file COPYING
 || for more information.
-|| $Id: pike_error.h,v 1.49 2008/10/04 17:17:14 mast Exp $
+|| $Id: pike_error.h,v 1.50 2008/10/06 17:00:00 mast Exp $
 */
 
 #ifndef PIKE_ERROR_H
 #define PIKE_ERROR_H
 
-#include <stdarg.h>
-
 #ifdef CONFIGURE_TEST
 
 #include <stdio.h>
diff --git a/src/port.h b/src/port.h
index 055888de84..44eeb0ddc9 100644
--- a/src/port.h
+++ b/src/port.h
@@ -2,7 +2,7 @@
 || This file is part of Pike. For copyright information see COPYRIGHT.
 || Pike is distributed under GPL, LGPL and MPL. See the file COPYING
 || for more information.
-|| $Id: port.h,v 1.64 2007/12/31 12:39:16 grubba Exp $
+|| $Id: port.h,v 1.65 2008/10/06 17:00:00 mast Exp $
 */
 
 #ifndef PORT_H
@@ -231,10 +231,6 @@ char *STRCHR(char *s,int c);
 #  endif
 #endif
 
-#if !defined(HAVE_VFPRINTF) || !defined(HAVE_VSPRINTF) || !defined(HAVE_VSNPRINTF)
-#  include <stdarg.h>
-#endif
-
 #ifndef HAVE_VFPRINTF
 PMOD_EXPORT int VFPRINTF(FILE *f,const char *s,va_list args);
 #else
diff --git a/src/program.h b/src/program.h
index 52c6e5a4bd..2960c365ef 100644
--- a/src/program.h
+++ b/src/program.h
@@ -2,13 +2,12 @@
 || This file is part of Pike. For copyright information see COPYRIGHT.
 || Pike is distributed under GPL, LGPL and MPL. See the file COPYING
 || for more information.
-|| $Id: program.h,v 1.259 2008/08/17 15:30:35 mast Exp $
+|| $Id: program.h,v 1.260 2008/10/06 17:00:00 mast Exp $
 */
 
 #ifndef PROGRAM_H
 #define PROGRAM_H
 
-#include <stdarg.h>
 #include "global.h"
 #include "pike_macros.h"
 #include "pike_error.h"
diff --git a/src/stralloc.h b/src/stralloc.h
index 0bada48714..4b4a67fb9d 100644
--- a/src/stralloc.h
+++ b/src/stralloc.h
@@ -2,15 +2,13 @@
 || This file is part of Pike. For copyright information see COPYRIGHT.
 || Pike is distributed under GPL, LGPL and MPL. See the file COPYING
 || for more information.
-|| $Id: stralloc.h,v 1.110 2008/07/22 23:35:11 mast Exp $
+|| $Id: stralloc.h,v 1.111 2008/10/06 17:00:00 mast Exp $
 */
 
 #ifndef STRALLOC_H
 #define STRALLOC_H
 #include "global.h"
 
-#include <stdarg.h>
-
 #include "pike_macros.h"
 #include "block_alloc_h.h"
 
-- 
GitLab