mirror of
https://git.tukaani.org/xz.git
synced 2024-04-04 12:36:23 +02:00
lib/getopt*.c: Include <config.h> only HAVE_CONFIG_H is defined.
The CMake-based build doesn't use config.h. Up-to-date getopt_long in Gnulib is LGPLv2 so at some point it could be included in XZ Utils too but for now this commit is enough to make CMake-based build possible.
This commit is contained in:
parent
aa0cd585d2
commit
aff1b479c7
2 changed files with 6 additions and 2 deletions
|
@ -21,7 +21,9 @@
|
||||||
Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */
|
Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */
|
||||||
|
|
||||||
#ifndef _LIBC
|
#ifndef _LIBC
|
||||||
# include <config.h>
|
# ifdef HAVE_CONFIG_H
|
||||||
|
# include <config.h>
|
||||||
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "getopt.h"
|
#include "getopt.h"
|
||||||
|
|
|
@ -20,7 +20,9 @@
|
||||||
#ifdef _LIBC
|
#ifdef _LIBC
|
||||||
# include <getopt.h>
|
# include <getopt.h>
|
||||||
#else
|
#else
|
||||||
# include <config.h>
|
# ifdef HAVE_CONFIG_H
|
||||||
|
# include <config.h>
|
||||||
|
# endif
|
||||||
# include "getopt.h"
|
# include "getopt.h"
|
||||||
#endif
|
#endif
|
||||||
#include "getopt_int.h"
|
#include "getopt_int.h"
|
||||||
|
|
Loading…
Reference in a new issue