Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add strndup() compat function for OSX
The comment in connect_https_socket() suggests that I didn't use strndup() there because Solaris lacks it. I blithely went ahead and used it in the NTLM code though, and Solaris 11 *does* seem to have it. (My Solaris 10 VM no longer boots, and I can't bring myself to care.) But OSX (10.6.8 Snow Leopard) also seems to lack strndup(). So add a compat implementation of it rather than just trying to remember not to use it. Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
- Loading branch information
David Woodhouse
authored and
David Woodhouse
committed
Jul 3, 2014
1 parent
a4df343
commit c4e0ed3
Showing
3 changed files
with
23 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters