mirror of
https://git.libssh.org/projects/libssh.git
synced 2025-11-30 13:01:23 +03:00
Fix getpwuid_r on opensolaris
This commit is contained in:
14
src/misc.c
14
src/misc.c
@@ -22,8 +22,14 @@
|
|||||||
* MA 02111-1307, USA.
|
* MA 02111-1307, USA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "config.h"
|
#ifndef _WIN32
|
||||||
|
/* This is needed for a standard getpwuid_r on opensolaris */
|
||||||
|
#define _POSIX_PTHREAD_SEMANTICS
|
||||||
|
#include <pwd.h>
|
||||||
|
#include <arpa/inet.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#include "config.h"
|
||||||
#include <limits.h>
|
#include <limits.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
@@ -47,12 +53,6 @@
|
|||||||
# include <io.h>
|
# include <io.h>
|
||||||
#endif /* _MSC_VER */
|
#endif /* _MSC_VER */
|
||||||
|
|
||||||
#else /* _WIN32 */
|
|
||||||
|
|
||||||
/* This is needed for a standard getpwuid_r on opensolaris */
|
|
||||||
#define _POSIX_PTHREAD_SEMANTICS
|
|
||||||
#include <pwd.h>
|
|
||||||
#include <arpa/inet.h>
|
|
||||||
#endif /* _WIN32 */
|
#endif /* _WIN32 */
|
||||||
|
|
||||||
#include "libssh/priv.h"
|
#include "libssh/priv.h"
|
||||||
|
|||||||
Reference in New Issue
Block a user