Merge pull request #76 from sitsofe/osx

Fix compilation on OS X
This commit is contained in:
Ronnie Sahlberg
2013-09-10 06:24:30 -07:00
2 changed files with 2 additions and 1 deletions

1
README
View File

@@ -159,6 +159,7 @@ Libiscsi has been tested on:
* Windows (Win7-VisualStudio10)
* OpenSolaris
* Solaris 11 : Use "gmake" to build.
* OS X
RELEASE TARBALLS
================

View File

@@ -129,7 +129,7 @@ int set_tcp_sockopt(int sockfd, int optname, int value)
{
int level;
#if defined(__FreeBSD__) || defined(__sun)
#if defined(__FreeBSD__) || defined(__sun) || (defined(__APPLE__) && defined(__MACH__))
struct protoent *buf;
if ((buf = getprotobyname("tcp")) != NULL)