[rtmpdump] [PATCH] 1 of 2 for building port on OpenBSD

Nigel Taylor njtaylor at asterisk.demon.co.uk
Wed Aug 3 12:40:30 CEST 2011


Hi,

OpenBSD does not compile correctly when includes are out of order,
see linux man inet(3), #include <arpa/inet.h> should occur later.

--- librtmp/rtmp_sys.h.orig     Mon Mar 21 09:33:05 2011
+++ librtmp/rtmp_sys.h  Mon Mar 21 09:33:23 2011
@@ -49,10 +49,10 @@
 #include <sys/socket.h>
 #include <sys/times.h>
 #include <netdb.h>
-#include <arpa/inet.h>
 #include <unistd.h>
 #include <netinet/in.h>
 #include <netinet/tcp.h>
+#include <arpa/inet.h>
 #define GetSockError() errno
 #define SetSockError(e)        errno = e
 #undef closesocket


More information about the rtmpdump mailing list