--- SConstruct.orig	2010-11-14 16:45:13.000000000 -0500
+++ SConstruct	2010-11-14 16:46:49.000000000 -0500
@@ -43,7 +43,7 @@
 #---------------#
 # FreeBSD build #
 #---------------#
-if (sys.platform == 'freebsd6') or (sys.platform == 'freebsd7') or (sys.platform == 'freebsd8'):
+if (sys.platform == 'freebsd6') or (sys.platform == 'freebsd7') or (sys.platform == 'freebsd8') or (sys.platform == 'freebsd9'):
     if 'LOCALBASE' in os.environ:
         LOCALBASE = os.environ['LOCALBASE']
     else:
@@ -53,7 +53,7 @@
         LIBPATH = ['.', '#lib', LOCALBASE + '/lib'],
         LINKFLAGS = ['-pthread','-lintl'],
         options = opts)
-    check_headers = ['GL/gl.h', 'GL/glu.h', 'SDL/SDL.h', 'SDL/SDL_image.h', 'SDL/SDL_rotozoom.h', 'vorbis/vorbisfile.h', 'GL/glew.h']
+    check_headers = ['asio.hpp', 'boost/bind.hpp', 'GL/gl.h', 'GL/glu.h', 'SDL/SDL.h', 'SDL/SDL_image.h', 'SDL/SDL_rotozoom.h', 'vorbis/vorbisfile.h', 'GL/glew.h']
     if 'CC' in os.environ:
         env.Replace(CC = os.environ['CC'])
     else:
@@ -396,7 +396,7 @@
 version = strftime("%Y-%m-%d")
 if env['release']:
     # release build, debugging off, optimizations on
-    if (sys.platform != 'freebsd6') and (sys.platform != 'freebsd7') and (sys.platform != 'freebsd8') and (sys.platform != 'win32') and (sys.platform != 'cygwin'):
+    if (sys.platform != 'freebsd6') and (sys.platform != 'freebsd7') and (sys.platform != 'freebsd8') and (sys.platform != 'freebsd9') and (sys.platform != 'win32') and (sys.platform != 'cygwin'):
         env.Append(CCFLAGS = ['-O1', '-pipe'])
     # version is current build date
     #version = strftime("%Y-%m-%d")
