mirror of
https://github.com/MariaDB/server.git
synced 2025-01-17 04:22:27 +01:00
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.
This commit is contained in:
parent
54f9b2cc1b
commit
e6d90f51de
1 changed files with 2 additions and 0 deletions
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue