Skip to content
Browse files

Change windows directives for includes

  • Loading branch information
durran committed Oct 27, 2013
1 parent 56e025f commit 93e7059c53bb667190fd91f89dd8f23de90ab644
Showing with 2 additions and 9 deletions.
  1. +2 −9 ext/bson/native.c
@@ -13,21 +13,14 @@
* See the License for the specific language governing permissions and
* limitations under the License.
#ifdef MINGW32

#ifdef _WIN32
#include <winsock2.h>
#include <windows.h>


#include <arpa/inet.h>
#include <sys/time.h>

#include <sys/types.h>

#include <stdint.h>
#include <sys/types.h>
#include <time.h>
#include <unistd.h>
#include <ruby.h>

3 comments on commit 93e7059


This comment has been minimized.

Copy link

luislavena replied Nov 25, 2013

Hello @durran, planning a new RC to fix this issue? Some folks on Windows are reporting problems:!topic/rubyinstaller/yiQD1Y9ZaYo

Thank you.


This comment has been minimized.

Copy link

pbennett replied Feb 15, 2015

This is still broken (a year later!?) in the released gems. :(
Mongo's latest release is 1.12 and it depends on bson 1.2 (which then wants bson_ext) which has this bug.
gem install bson_ext (which fetches 1.12 at this time) fails during compilation with the same error:
cbson.c:25:23: fatal error: arpa/inet.h: No such file or directory


This comment has been minimized.

Copy link

crmckenzie replied Apr 17, 2015

Still broken. :(

Please sign in to comment.
You can’t perform that action at this time.