Only in bes-3.6.2: bes-3.6.2-includes.patch
diff -ru bes-3.6.2.orig/dispatch/BESUncompressGZ.cc bes-3.6.2/dispatch/BESUncompressGZ.cc
--- bes-3.6.2.orig/dispatch/BESUncompressGZ.cc 2009-03-03 22:51:45.000000000 +0000
+++ bes-3.6.2/dispatch/BESUncompressGZ.cc 2009-03-03 23:08:14.000000000 +0000
@@ -34,9 +34,11 @@
#include <cstring>
#include <cerrno>
+#include <cstdio>
#include <sstream>
using std::ostringstream ;
+using std::fopen ;
#include "BESUncompressGZ.h"
#include "BESInternalError.h"
diff -ru bes-3.6.2.orig/dispatch/BESUncompressZ.cc bes-3.6.2/dispatch/BESUncompressZ.cc
--- bes-3.6.2.orig/dispatch/BESUncompressZ.cc 2009-03-03 22:51:45.000000000 +0000
+++ bes-3.6.2/dispatch/BESUncompressZ.cc 2009-03-03 23:22:50.000000000 +0000
@@ -37,6 +37,7 @@
#if HAVE_UNISTD_H
#include <unistd.h>
#endif
+#include <stdio.h>
#include <cstring>
#include <cerrno>
diff -ru bes-3.6.2.orig/dispatch/BESUtil.cc bes-3.6.2/dispatch/BESUtil.cc
--- bes-3.6.2.orig/dispatch/BESUtil.cc 2009-03-03 22:51:44.000000000 +0000
+++ bes-3.6.2/dispatch/BESUtil.cc 2009-03-04 08:30:15.000000000 +0000
@@ -42,12 +42,14 @@
#include <cerrno>
#include <cstring>
#include <cstdlib>
+#include <cstdio>
#include <sstream>
#include <iostream>
using std::istringstream ;
using std::cout ;
using std::endl ;
+using std::snprintf ;
#include "BESUtil.h"
#include "BESForbiddenError.h"
diff -ru bes-3.6.2.orig/ppt/PPTStreamBuf.cc bes-3.6.2/ppt/PPTStreamBuf.cc
--- bes-3.6.2.orig/ppt/PPTStreamBuf.cc 2009-03-03 22:51:45.000000000 +0000
+++ bes-3.6.2/ppt/PPTStreamBuf.cc 2009-03-04 09:08:05.000000000 +0000
@@ -33,6 +33,7 @@
#include <sys/types.h>
//#include <sys/uio.h>
#include <unistd.h> // for sync
+#include <stdio.h> // for EOF
#include <sstream>
#include <iomanip>
#include <iostream>
diff -ru bes-3.6.2.orig/ppt/Socket.cc bes-3.6.2/ppt/Socket.cc
--- bes-3.6.2.orig/ppt/Socket.cc 2009-03-03 22:51:45.000000000 +0000
+++ bes-3.6.2/ppt/Socket.cc 2009-03-04 08:50:15.000000000 +0000
@@ -45,6 +45,7 @@
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
+#include <stdio.h>
#include "Socket.h"
#include "BESInternalError.h"
diff -ru bes-3.6.2.orig/ppt/UnixSocket.cc bes-3.6.2/ppt/UnixSocket.cc
--- bes-3.6.2.orig/ppt/UnixSocket.cc 2009-03-03 22:51:45.000000000 +0000
+++ bes-3.6.2/ppt/UnixSocket.cc 2009-03-04 08:57:25.000000000 +0000
@@ -32,6 +32,7 @@
// szednik Stephan Zednik <zednik@ucar.edu>
#include <unistd.h> // for unlink
+#include <stdio.h> // for remove
#include <sys/un.h>
#include <sys/socket.h>
#include <sys/types.h>