diff -up bes-3.9.2/dispatch/BESDebug.cc.gcc47 bes-3.9.2/dispatch/BESDebug.cc
--- bes-3.9.2/dispatch/BESDebug.cc.gcc47 2011-08-01 10:43:30.000000000 -0600
+++ bes-3.9.2/dispatch/BESDebug.cc 2012-01-13 12:28:38.414752409 -0700
@@ -33,6 +33,7 @@
#include "config.h"
#include <time.h>
+#include <unistd.h>
#include <fstream>
#include <iostream>