List:Commits« Previous MessageNext Message »
From:Magnus Blåudd Date:May 12 2011 12:55pm
Subject:bzr commit into mysql-5.1-telco-7.0 branch (magnus.blaudd:4374)
View as plain text  
#At file:///home/msvensson/mysql/7.0/ based on revid:magnus.blaudd@stripped

 4374 Magnus Blåudd	2011-05-12
      ndb
       - add same define for INADDR_NONE as in include/my_net.h to avoid
        problem compiling NdbTCP.cpp if INADDR_NONE define is removed.
       - this hack should do until code does not use INADDR_NONE anymore

    modified:
      storage/ndb/src/common/portlib/NdbTCP.cpp
=== modified file 'storage/ndb/src/common/portlib/NdbTCP.cpp'
--- a/storage/ndb/src/common/portlib/NdbTCP.cpp	2011-05-11 19:12:56 +0000
+++ b/storage/ndb/src/common/portlib/NdbTCP.cpp	2011-05-12 12:53:51 +0000
@@ -19,6 +19,13 @@
 #include <ndb_global.h>
 #include <NdbTCP.h>
 
+
+/* On some operating systems (e.g. Solaris) INADDR_NONE is not defined */
+#ifndef INADDR_NONE
+#define INADDR_NONE -1                          /* Error value from inet_addr */
+#endif
+
+
 extern "C"
 int
 Ndb_getInAddr(struct in_addr * dst, const char *address)

Attachment: [text/bzr-bundle] bzr/magnus.blaudd@oracle.com-20110512125351-2red1klhhioq23x6.bundle
Thread
bzr commit into mysql-5.1-telco-7.0 branch (magnus.blaudd:4374) Magnus Blåudd12 May