List:Commits« Previous MessageNext Message »
From:Konstantin Osipov Date:November 19 2008 1:54pm
Subject:bzr commit into mysql-6.0-runtime branch (kostja:2750)
View as plain text  
#At file:///opt/local/work/mysql-6.0-runtime/

 2750 Konstantin Osipov	2008-11-19
      Fix a build failure in pushbuild, sapsrv1.
modified:
  include/m_string.h
  include/my_sys.h
  sql/sql_list.h

per-file messages:
  include/my_sys.h
    TRASH declaration depends on bfill() declaration, which
    is declared in string.h/m_string.h. Move TRASH declaration
    after bfill(), to m_string.h.
  sql/sql_list.h
    Include m_string.h for TRASH and bfill().
=== modified file 'include/m_string.h'
--- a/include/m_string.h	2008-06-26 18:29:30 +0000
+++ b/include/m_string.h	2008-11-19 12:53:52 +0000
@@ -383,4 +383,10 @@ static inline const uchar *skip_trailing
   return (end);
 }
 
-#endif
+#ifdef SAFEMALLOC
+#define TRASH(A,B) bfill(A, B, 0x8F)
+#else
+#define TRASH(A,B) /* nothing */
+#endif /* SAFEMALLOC */
+
+#endif /* _m_string_h */

=== modified file 'include/my_sys.h'
--- a/include/my_sys.h	2008-10-20 19:13:22 +0000
+++ b/include/my_sys.h	2008-11-19 12:53:52 +0000
@@ -150,7 +150,6 @@ extern int NEAR my_errno;		/* Last error
 #define my_memdup(A,B,C) _my_memdup((A),(B), __FILE__,__LINE__,C)
 #define my_strdup(A,C) _my_strdup((A), __FILE__,__LINE__,C)
 #define my_strndup(A,B,C) _my_strndup((A),(B),__FILE__,__LINE__,C)
-#define TRASH(A,B) bfill(A, B, 0x8F)
 #define QUICK_SAFEMALLOC sf_malloc_quick=1
 #define NORMAL_SAFEMALLOC sf_malloc_quick=0
 extern uint sf_malloc_prehunc,sf_malloc_endhunc,sf_malloc_quick;
@@ -178,7 +177,6 @@ extern char *my_strndup(const char *from
 #define CALLER_INFO_PROTO   /* nothing */
 #define CALLER_INFO         /* nothing */
 #define ORIG_CALLER_INFO    /* nothing */
-#define TRASH(A,B) /* nothing */
 #endif
 
 #ifdef HAVE_LARGE_PAGES

=== modified file 'sql/sql_list.h'
--- a/sql/sql_list.h	2008-11-18 22:30:59 +0000
+++ b/sql/sql_list.h	2008-11-19 12:53:52 +0000
@@ -16,7 +16,8 @@
    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA */
 
 #include "my_global.h"
-#include "my_sys.h"
+#include "my_sys.h"   /* for MEM_ROOT, operator new */
+#include "m_string.h" /* for TRASH */
 
 
 #ifdef USE_PRAGMA_INTERFACE

Thread
bzr commit into mysql-6.0-runtime branch (kostja:2750)Konstantin Osipov19 Nov