diff options
author | unknown <anozdrin@mysql.com> | 2005-11-24 18:42:39 +0300 |
---|---|---|
committer | unknown <anozdrin@mysql.com> | 2005-11-24 18:42:39 +0300 |
commit | e6d90f51de36fe91aa21746403200d3392306d57 (patch) | |
tree | f464ea8f1b7f71641208e44308e6d563ad88c30e /extra/innochecksum.c | |
parent | 54f9b2cc1b5dfaf5f465852a02ef7289a1ac2e7a (diff) | |
download | mariadb-git-e6d90f51de36fe91aa21746403200d3392306d57.tar.gz |
Make it buildable with -ansi flag on some platforms.
extra/innochecksum.c:
Define _XOPEN_SOURCE in order to include getopt.h when needed.
The problem is that some platforms (for instance,
SuSE 9.1/gcc-3.3.3) do not include getopt.h unless _XOPEN_SOURCE
is defined, so optarg is undefined and the compiler complains.
Diffstat (limited to 'extra/innochecksum.c')
-rw-r--r-- | extra/innochecksum.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/extra/innochecksum.c b/extra/innochecksum.c index 739953298af..bae5f3e8821 100644 --- a/extra/innochecksum.c +++ b/extra/innochecksum.c @@ -28,6 +28,8 @@ #define _LARGEFILE_SOURCE #define _LARGEFILE64_SOURCE +#define _XOPEN_SOURCE /* needed to include getopt.h on some platforms. */ + #include <stdio.h> #include <stdlib.h> #include <time.h> |