~mathiaz/ubuntu/lucid/mysql-dfsg-5.1/zap-bug-552053

« back to all changes in this revision

Viewing changes to include/config-win.h

  • Committer: Bazaar Package Importer
  • Author(s): Mathias Gug
  • Date: 2009-06-25 12:55:45 UTC
  • mfrom: (1.1.2 upstream) (0.1.3 experimental)
  • Revision ID: james.westby@ubuntu.com-20090625125545-m8ogs96zzsri74xe
Tags: 5.1.34-1ubuntu1
* Merge from debian experimental (and 5.0 from main), remaining changes:
  - debian/mysql-server-5.1.config:
    + ask for MySQL root password at priority high instead of medium so
      that the password prompt is seen on a default install. (LP: #319843)
    + don't ask for root password when upgrading from a 5.0 install.
  - debian/control:
    + Make libmysqlclient16-dev a transitional package depending on
      libmysqlclient-dev.
    + Make libmysqlclient-dev conflict with libmysqlclient15-dev.
    + Don't build mysql-server, mysql-client, mysql-common and
      libmysqlclient15-dev binary packages since they're still provided
      by mysql-dfsg-5.0.
    + Make mysql-{client,server}-5.1 packages conflict and
      replace mysql-{client,server}-5.0, but not provide
      mysql-{client,server}.
    + Depend on a specific version of mysql-common rather than the src
      version of mysql-dfsg-5.1 since mysql-common is currently part of
      mysql-dfsg-5.0.
    + Lower mailx from a Recommends to a Suggests to avoid pulling in
      a full MTA on all installs of mysql-server. (LP: #259477)
  - debian/rules:
    + added -fno-strict-aliasing to CFLAGS to get around mysql testsuite
      build failures.
    + install mysql-test and sql-bench to /usr/share/mysql/ rather than
      /usr/.
  - debian/additions/debian-start.inc.sh: support ANSI mode (LP: #310211)
  - Add AppArmor profile:
    - debian/apparmor-profile: apparmor profile.
    - debian/rules, debian/mysql-server-5.0.files: install apparmor profile.
    - debian/mysql-server-5.0.dirs: add etc/apparmor.d/force-complain
    - debian/mysql-server-5.0.postrm: remove symlink in force-complain/ on
      purge.
    - debian/mysql-server-5.1.README.Debian: add apparmor documentation.
    - debian/additions/my.cnf: Add warning about apparmor. (LP: #201799)
    - debian/mysql-server-5.1.postinst: reload apparmor profiles.
  - debian/additions/my.cnf: remove language option. Error message files are
    located in a different directory in MySQL 5.0. Setting the language
    option to use /usr/share/mysql/english breaks 5.0. Both 5.0 and 5.1
    use a default value that works. (LP: #316974)
  - debian/mysql-server-5.1.mysql.init:
    + Clearly indicate that we do not support running multiple instances
      of mysqld by duplicating the init script.
      (closes: #314785, #324834, #435165, #444216)
    + Properly parameterize all existing references to the mysql config
      file (/etc/mysql/my.cnf).
  - debian/mysql-server-5.0.postinst: Clear out the second password
    when setting up mysql. (LP: #344816)
  - mysql-server-core-5.1 package for files needed by Akonadi:
    + debian/control: create mysql-server-core-5.1 package.
    + debian/mysql-server-core-5.1.files, debian/mysql-server-5.1.files:
      move core mysqld files to mysql-server-core-5.1 package.
  - Don't package sql-bench and mysql-test file.
* Dropped changes:
  - debian/patches/92_ssl_test_cert.dpatch: certificate expiration in
    test suite (LP: #323755). Included upstream.
* Dropped from 5.0:
  - apparmor profile:
    - debian/control: Recommends apparmor >= 2.1+1075-0ubuntu6. All version
      of apparmor-profile (>hardy) are higher than this version.
    - debian/mysql-server-5.0.preinst: create symlink for force-complain/
      on pre-feisty upgrades, upgrades where apparmor-profiles profile is
      unchanged (ie non-enforcing) and upgrades where the profile
      doesn't exist. Support for pre-hardy upgrades is no longer needed.
* debian/mysql-server-5.1.postinst: fix debian-sys-maint user creation.

Show diffs side-by-side

added added

removed removed

Lines of Context:
33
33
 
34
34
#include <sys/locking.h>
35
35
#include <winsock2.h>
36
 
#include <math.h>                       /* Because of rint() */
37
36
#include <fcntl.h>
38
37
#include <io.h>
39
38
#include <malloc.h>
64
63
#endif
65
64
#ifndef __WIN32__
66
65
#define __WIN32__
 
66
#define _INTEGRAL_MAX_BITS 32
 
67
#else
 
68
#define _INTEGRAL_MAX_BITS 64
67
69
#endif
68
70
#endif /* _WIN64 */
69
71
#ifndef __WIN__
197
199
#define SIGNAL_WITH_VIO_CLOSE
198
200
#endif
199
201
 
200
 
/* Use all character sets in MySQL */
201
 
#define USE_MB 1
202
 
#define USE_MB_IDENT 1
203
 
#define USE_STRCOLL 1
204
 
 
205
202
/* All windows servers should support .sym files */
206
203
#undef USE_SYMDIR
207
204
#define USE_SYMDIR
228
225
#define inline __inline
229
226
#endif /* __cplusplus */
230
227
 
231
 
inline double rint(double nr)
232
 
{
233
 
  double f = floor(nr);
234
 
  double c = ceil(nr);
235
 
  return (((c-nr) >= (nr-f)) ? f :c);
236
 
}
237
 
 
238
228
#ifdef _WIN64
239
229
#define ulonglong2double(A) ((double) (ulonglong) (A))
240
230
#define my_off_t2double(A)  ((double) (my_off_t) (A))
289
279
#define HAVE_FLOAT_H
290
280
#define HAVE_LIMITS_H
291
281
#define HAVE_STDDEF_H
292
 
#define HAVE_RINT               /* defined in this file */
293
282
#define NO_FCNTL_NONBLOCK       /* No FCNTL */
294
283
#define HAVE_ALLOCA
295
284
#define HAVE_STRPBRK
371
360
#define shared_memory_buffer_length 16000
372
361
#define default_shared_memory_base_name "MYSQL"
373
362
 
374
 
#define MYSQL_DEFAULT_CHARSET_NAME "latin1"
375
 
#define MYSQL_DEFAULT_COLLATION_NAME "latin1_swedish_ci"
376
 
 
377
363
#define HAVE_SPATIAL 1
378
364
#define HAVE_RTREE_KEYS 1
379
365
 
383
369
#define COMMUNITY_SERVER 1
384
370
#define ENABLED_PROFILING 1
385
371
 
386
 
/* Define charsets you want */
387
 
/* #undef HAVE_CHARSET_armscii8 */
388
 
/* #undef HAVE_CHARSET_ascii */
 
372
/*
 
373
  Our Windows binaries include all character sets which MySQL supports.
 
374
  Any changes to the available character sets must also go into
 
375
  config/ac-macros/character_sets.m4
 
376
*/
 
377
 
 
378
#define MYSQL_DEFAULT_CHARSET_NAME "latin1"
 
379
#define MYSQL_DEFAULT_COLLATION_NAME "latin1_swedish_ci"
 
380
 
 
381
#define USE_MB 1
 
382
#define USE_MB_IDENT 1
 
383
#define USE_STRCOLL 1
 
384
 
 
385
#define HAVE_CHARSET_armscii8
 
386
#define HAVE_CHARSET_ascii
389
387
#define HAVE_CHARSET_big5 1
390
388
#define HAVE_CHARSET_cp1250 1
391
 
/* #undef HAVE_CHARSET_cp1251 */
392
 
/* #undef HAVE_CHARSET_cp1256 */
393
 
/* #undef HAVE_CHARSET_cp1257 */
394
 
/* #undef HAVE_CHARSET_cp850 */
395
 
/* #undef HAVE_CHARSET_cp852 */
396
 
/* #undef HAVE_CHARSET_cp866 */
 
389
#define HAVE_CHARSET_cp1251
 
390
#define HAVE_CHARSET_cp1256
 
391
#define HAVE_CHARSET_cp1257
 
392
#define HAVE_CHARSET_cp850
 
393
#define HAVE_CHARSET_cp852
 
394
#define HAVE_CHARSET_cp866
397
395
#define HAVE_CHARSET_cp932 1
398
 
/* #undef HAVE_CHARSET_dec8 */
 
396
#define HAVE_CHARSET_dec8
399
397
#define HAVE_CHARSET_eucjpms 1
400
398
#define HAVE_CHARSET_euckr 1
401
399
#define HAVE_CHARSET_gb2312 1
402
400
#define HAVE_CHARSET_gbk 1
403
 
/* #undef HAVE_CHARSET_greek */
404
 
/* #undef HAVE_CHARSET_hebrew */
405
 
/* #undef HAVE_CHARSET_hp8 */
406
 
/* #undef HAVE_CHARSET_keybcs2 */
407
 
/* #undef HAVE_CHARSET_koi8r */
408
 
/* #undef HAVE_CHARSET_koi8u */
 
401
#define HAVE_CHARSET_geostd8
 
402
#define HAVE_CHARSET_greek
 
403
#define HAVE_CHARSET_hebrew
 
404
#define HAVE_CHARSET_hp8
 
405
#define HAVE_CHARSET_keybcs2
 
406
#define HAVE_CHARSET_koi8r
 
407
#define HAVE_CHARSET_koi8u
409
408
#define HAVE_CHARSET_latin1 1
410
409
#define HAVE_CHARSET_latin2 1
411
 
/* #undef HAVE_CHARSET_latin5 */
412
 
/* #undef HAVE_CHARSET_latin7 */
413
 
/* #undef HAVE_CHARSET_macce */
414
 
/* #undef HAVE_CHARSET_macroman */
 
410
#define HAVE_CHARSET_latin5
 
411
#define HAVE_CHARSET_latin7
 
412
#define HAVE_CHARSET_macce
 
413
#define HAVE_CHARSET_macroman
415
414
#define HAVE_CHARSET_sjis 1
416
 
/* #undef HAVE_CHARSET_swe7 */
 
415
#define HAVE_CHARSET_swe7
417
416
#define HAVE_CHARSET_tis620 1
418
417
#define HAVE_CHARSET_ucs2 1
419
418
#define HAVE_CHARSET_ujis 1
420
419
#define HAVE_CHARSET_utf8 1
 
420
 
421
421
#define HAVE_UCA_COLLATIONS 1
422
422
#define HAVE_BOOL 1