applied patch with jira issue 1510. Added !defined __APPLE__ to avoid build error on macos when checking for unistd.h
applied patch with jira issue 1510. Added !defined __APPLE__ to avoid build error on macos when checking for unistd.h

git-svn-id: 5a5244c3e27c01ab42b89dd0859e71311b4596e2@1059222 13f79535-47bb-0310-9956-ffa450edef68

bnoordhuis/axis2-c,bnoordhuis/axis2-c,bnoordhuis/axis2-c,bnoordhuis/axis2-c