diff -urpN rtmpdump.orig/bytes.h rtmpdump/bytes.h
--- rtmpdump.orig/bytes.h	Wed Mar 18 20:20:54 2009
+++ rtmpdump/bytes.h	Wed Mar 18 20:28:33 2009
@@ -3,7 +3,7 @@
 
 #include <stdint.h>
 
-#ifdef WIN32
+#if defined (WIN32) || defined(__FreeBSD__)
 #define __LITTLE_ENDIAN 1234
 #define __BIG_ENDIAN    4321
 #define __BYTE_ORDER __LITTLE_ENDIAN
diff -urpN rtmpdump.orig/rtmp.h rtmpdump/rtmp.h
--- rtmpdump.orig/rtmp.h	Wed Mar 18 20:20:54 2009
+++ rtmpdump/rtmp.h	Wed Mar 18 20:35:13 2009
@@ -26,6 +26,11 @@
 //#include <vector>
 
 #ifdef WIN32
+#elif defined (__FreeBSD__)
+#include <sys/socket.h>
+#include <netinet/in.h>
+#include <arpa/inet.h>
+#include <netdb.h>
 #else
 //#include <sys/types.h>
 //#include <sys/socket.h>
