Skip to content
This repository has been archived by the owner on Jan 9, 2024. It is now read-only.

Commit

Permalink
Merge pull request mongofill#75 from mkeen/bsd-compat
Browse files Browse the repository at this point in the history
switched out SOL_TCP constant
  • Loading branch information
mcuadros committed May 25, 2015
2 parents 5fbe953 + 884a397 commit 7cdea75
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Mongofill/Socket.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ protected function connectSocket()
));
}
} else {
$this->socket = socket_create(AF_INET, SOCK_STREAM, SOL_TCP);
$this->socket = socket_create(AF_INET, SOCK_STREAM, getprotobyname("tcp"));
if (!$this->socket) {
throw new MongoConnectionException(sprintf(
'error creating socket: %s',
Expand Down

0 comments on commit 7cdea75

Please sign in to comment.