--- src/bbcp_BuffPool.C.orig 2015-01-16 13:30:31.000000000 -0800 +++ src/bbcp_BuffPool.C 2015-01-16 13:33:14.000000000 -0800 @@ -32,7 +32,7 @@ #include #include -#if defined(MACOS) || defined(AIX) +#if defined(MACOS) || defined(AIX) || defined(FREEBSD) #define memalign(pgsz,amt) valloc(amt) #else #include @@ -84,14 +84,14 @@ // Free all of the buffers in the empty queue // - while(currp = last_empty) + while((currp = last_empty)) {last_empty = last_empty->next; delete currp;} //cerr <next; delete currp;} FullPool.UnLock(); }