List:Commits« Previous MessageNext Message »
From:mmj Date:January 4 2007 10:18pm
Subject:bk commit into 4.1 tree (mmj:1.2590)
View as plain text  
Below is the list of changes that have just been committed into a local
4.1 repository of mmj. When mmj does a push these changes will
be propagated to the main repository and, within 24 hours after the
push, to the public repository.
For information on how to access the public repository
see http://dev.mysql.com/doc/mysql/en/installing-source-tree.html

ChangeSet@stripped, 2007-01-04 23:18:04+01:00, mmj@stripped +1 -0
  my_global.h:
    Patch from Alfredo for TARGET_FAT_BINARY

  include/my_global.h@stripped, 2007-01-04 23:16:45+01:00, mmj@stripped +36 -0
    Patch from Alfredo for TARGET_FAT_BINARY

# This is a BitKeeper patch.  What follows are the unified diffs for the
# set of deltas contained in the patch.  The rest of the patch, the part
# that BitKeeper cares about, is below these diffs.
# User:	mmj
# Host:	tiger.mmj.dk
# Root:	/Users/mmj/bktrees/mysql-4.1-build

--- 1.110/include/my_global.h	2006-10-03 00:48:23 +02:00
+++ 1.111/include/my_global.h	2007-01-04 23:16:45 +01:00
@@ -85,6 +85,42 @@
 #endif
 
 /*
+  The macros below are used to allow build of Universal/fat binaries of
+  MySQL and MySQL applications under darwin. 
+*/
+#ifdef TARGET_FAT_BINARY
+# undef SIZEOF_CHARP 
+# undef SIZEOF_INT 
+# undef SIZEOF_LONG 
+# undef SIZEOF_LONG_LONG 
+# undef SIZEOF_OFF_T 
+# undef SIZEOF_SHORT 
+
+#if defined(__i386__)
+# undef WORDS_BIGENDIAN
+# define SIZEOF_CHARP 4
+# define SIZEOF_INT 4
+# define SIZEOF_LONG 4
+# define SIZEOF_LONG_LONG 8
+# define SIZEOF_OFF_T 8
+# define SIZEOF_SHORT 2
+
+#elif defined(__ppc__)
+# define WORDS_BIGENDIAN
+# define SIZEOF_CHARP 4
+# define SIZEOF_INT 4
+# define SIZEOF_LONG 4
+# define SIZEOF_LONG_LONG 8
+# define SIZEOF_OFF_T 8
+# define SIZEOF_SHORT 2
+
+#else
+# error Building FAT binary for an unknown architecture.
+#endif
+#endif /* TARGET_FAT_BINARY */
+
+
+/*
   The macros below are borrowed from include/linux/compiler.h in the
   Linux kernel. Use them to indicate the likelyhood of the truthfulness
   of a condition. This serves two purposes - newer versions of gcc will be
Thread
bk commit into 4.1 tree (mmj:1.2590)mmj4 Jan