Move the definition if INADDR_NONE in the unique file that use it. Anyway the
ompi_config_bottom.h was a bad place to have it as normally this file is included before everything else so we always define our own INADDR_NONE generating a lot of warnings on some OSes. This commit was SVN r5198.
Этот коммит содержится в:
родитель
e6ac18bd3b
Коммит
aa421ffc45
@ -233,20 +233,6 @@ typedef struct {
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
||||
/*
|
||||
* Define INADDR_NONE if we don't have it. Solaris is the only system
|
||||
* where I have found that it does not exist, and the man page for
|
||||
* inet_addr() says that it returns -1 upon failure. On Linux and
|
||||
* other systems with INADDR_NONE, it's just a #define to -1 anyway.
|
||||
* So just #define it to -1 here if it doesn't already exist.
|
||||
*/
|
||||
|
||||
#if defined(OMPI_BUILDING) && OMPI_BUILDING && !defined(INADDR_NONE)
|
||||
#define INADDR_NONE -1
|
||||
#endif
|
||||
|
||||
|
||||
/*
|
||||
* Define __func__-preprocessor directive if the compiler does not
|
||||
* already define it. Define it to __FILE__ so that we at least have
|
||||
|
@ -55,6 +55,18 @@
|
||||
#define IF_NAMESIZE 32
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Define INADDR_NONE if we don't have it. Solaris is the only system
|
||||
* where I have found that it does not exist, and the man page for
|
||||
* inet_addr() says that it returns -1 upon failure. On Linux and
|
||||
* other systems with INADDR_NONE, it's just a #define to -1 anyway.
|
||||
* So just #define it to -1 here if it doesn't already exist.
|
||||
*/
|
||||
|
||||
#if !defined(INADDR_NONE)
|
||||
#define INADDR_NONE -1
|
||||
#endif
|
||||
|
||||
struct ompi_if_t {
|
||||
ompi_list_item_t super;
|
||||
char if_name[IF_NAMESIZE];
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user