$NetBSD: patch-mozilla_media_webrtc_trunk_webrtc_system__wrappers_source_spreadsortlib_spreadsort.hpp,v 1.3 2015/07/09 15:17:34 ryoon Exp $ --- mozilla/media/webrtc/trunk/webrtc/system_wrappers/source/spreadsortlib/spreadsort.hpp.orig 2015-06-08 17:49:25.000000000 +0000 +++ mozilla/media/webrtc/trunk/webrtc/system_wrappers/source/spreadsortlib/spreadsort.hpp @@ -14,6 +14,13 @@ Cygwin fix provided by: Scott McMurray */ +#ifdef __FreeBSD__ +# include +# if __FreeBSD_version < 900506 +# define getchar boost_getchar +# endif +#endif + #ifndef BOOST_SPREAD_SORT_H #define BOOST_SPREAD_SORT_H #include @@ -21,6 +28,13 @@ Scott McMurray #include #include "webrtc/system_wrappers/source/spreadsortlib/constants.hpp" +#ifdef __FreeBSD__ +# include +# if __FreeBSD_version < 900506 +# define getchar boost_getchar +# endif +#endif + #ifdef getchar #undef getchar #endif