[SERVER-31272] Missing sys/resource.h on !linux Created: 26/Sep/17  Updated: 30/Oct/23  Resolved: 27/Sep/17

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Andrew Aldridge Assignee: Mark Benvenuto
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Platforms 2017-10-02
Participants:

 Description   

Starting in afb51939, builds began failing on OpenBSD (and presumably other Unix-like platforms).

This is due to src/mongo/transport/service_entry_point_utils.cpp. Changing #ifdef __linux__ to #ifndef _WIN32 as suggested in the comment fixes the build.



 Comments   
Comment by Githook User [ 27/Sep/17 ]

Author:

{'email': 'i80and@foxquill.com', 'name': 'Andrew Aldridge', 'username': 'i80and'}

Message: SERVER-31272: Include sys/resource.h on Unix

Closes #1177

Signed-off-by: Mark Benvenuto <mark.benvenuto@mongodb.com>
Branch: master
https://github.com/mongodb/mongo/commit/1d1ea84097f6234a9dbc74158da720c4a30d9005

Generated at Thu Feb 08 04:26:30 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.