Correctly include win32 util header.
This commit was SVN r21343.
Этот коммит содержится в:
родитель
b572dc3591
Коммит
e46bf10efd
@ -53,9 +53,6 @@
|
|||||||
#include "opal/util/output.h"
|
#include "opal/util/output.h"
|
||||||
#include "opal/util/argv.h"
|
#include "opal/util/argv.h"
|
||||||
#include "opal/util/net.h"
|
#include "opal/util/net.h"
|
||||||
#if defined(__WINDOWS__)
|
|
||||||
#include "opal/win32/ompi_inet.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "orte/types.h"
|
#include "orte/types.h"
|
||||||
#include "orte/util/show_help.h"
|
#include "orte/util/show_help.h"
|
||||||
|
@ -19,8 +19,8 @@
|
|||||||
|
|
||||||
#include "opal_config.h"
|
#include "opal_config.h"
|
||||||
|
|
||||||
|
#include "opal/win32/ompi_inet.h"
|
||||||
#include "opal/util/output.h"
|
#include "opal/util/output.h"
|
||||||
#include "ompi_inet.h"
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* convert from presentation format (which usually means ASCII printable)
|
* convert from presentation format (which usually means ASCII printable)
|
||||||
@ -31,8 +31,7 @@
|
|||||||
* 0 if the address wasn't valid (`dst' is untouched in this case)
|
* 0 if the address wasn't valid (`dst' is untouched in this case)
|
||||||
* -1 if some other error occurred (`dst' is untouched in this case, too)
|
* -1 if some other error occurred (`dst' is untouched in this case, too)
|
||||||
*/
|
*/
|
||||||
static int
|
int inet_pton(int af, const char *src, void *dst)
|
||||||
inet_pton(int af, const char *src, void *dst)
|
|
||||||
{
|
{
|
||||||
int addr_len;
|
int addr_len;
|
||||||
struct sockaddr sa;
|
struct sockaddr sa;
|
||||||
@ -78,8 +77,7 @@ inet_pton(int af, const char *src, void *dst)
|
|||||||
* return:
|
* return:
|
||||||
* pointer to presentation format address (`dst'), or NULL.
|
* pointer to presentation format address (`dst'), or NULL.
|
||||||
*/
|
*/
|
||||||
static const char *
|
const char *inet_ntop(int af, const void *src, char *dst, size_t size)
|
||||||
inet_ntop(int af, const void *src, char *dst, size_t size)
|
|
||||||
{
|
{
|
||||||
int addr_len;
|
int addr_len;
|
||||||
struct sockaddr sa;
|
struct sockaddr sa;
|
||||||
|
@ -19,12 +19,18 @@
|
|||||||
#ifndef OMPI_INET_H
|
#ifndef OMPI_INET_H
|
||||||
#define OMPI_INET_H
|
#define OMPI_INET_H
|
||||||
|
|
||||||
|
#include "opal_config.h"
|
||||||
|
|
||||||
|
#ifndef OMPI_WIN_COMPAT_H
|
||||||
|
#error This file is supposed to be included only from win_compat.h
|
||||||
|
#endif /* OMPI_WIN_COMPAT_H */
|
||||||
|
|
||||||
#if defined(c_plusplus) || defined(__cplusplus)
|
#if defined(c_plusplus) || defined(__cplusplus)
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
OPAL_DECLSPEC int inet_pton(int af, const char *src, void *dst);
|
OPAL_DECLSPEC int inet_pton(int af, const char *src, void *dst);
|
||||||
|
|
||||||
OPAL_DECLSPEC const char *inet_ntop(int af, const void *src, char *dst, size_t size);
|
OPAL_DECLSPEC const char *inet_ntop(int af, const void *src, char *dst, size_t size);
|
||||||
|
|
||||||
#if defined(c_plusplus) || defined(__cplusplus)
|
#if defined(c_plusplus) || defined(__cplusplus)
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
* Copyright (c) 2004-2006 The University of Tennessee and The University
|
* Copyright (c) 2004-2006 The University of Tennessee and The University
|
||||||
* of Tennessee Research Foundation. All rights
|
* of Tennessee Research Foundation. All rights
|
||||||
* reserved.
|
* reserved.
|
||||||
* Copyright (c) 2004-2005 High Performance Computing Center Stuttgart,
|
* Copyright (c) 2004-2009 High Performance Computing Center Stuttgart,
|
||||||
* University of Stuttgart. All rights reserved.
|
* University of Stuttgart. All rights reserved.
|
||||||
* Copyright (c) 2004-2005 The Regents of the University of California.
|
* Copyright (c) 2004-2005 The Regents of the University of California.
|
||||||
* All rights reserved.
|
* All rights reserved.
|
||||||
@ -85,6 +85,7 @@
|
|||||||
#include "opal/win32/ompi_utsname.h"
|
#include "opal/win32/ompi_utsname.h"
|
||||||
#include "opal/win32/ompi_util.h"
|
#include "opal/win32/ompi_util.h"
|
||||||
#include "opal/win32/ompi_misc.h"
|
#include "opal/win32/ompi_misc.h"
|
||||||
|
#include "opal/win32/ompi_inet.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define MAXPATHLEN _MAX_PATH
|
#define MAXPATHLEN _MAX_PATH
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user