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,8 +21,10 @@
|
|||
Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */
|
||||
|
||||
#ifndef _LIBC
|
||||
# ifdef HAVE_CONFIG_H
|
||||
# include <config.h>
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#include "getopt.h"
|
||||
|
||||
|
|
|
@ -20,7 +20,9 @@
|
|||
#ifdef _LIBC
|
||||
# include <getopt.h>
|
||||
#else
|
||||
# ifdef HAVE_CONFIG_H
|
||||
# include <config.h>
|
||||
# endif
|
||||
# include "getopt.h"
|
||||
#endif
|
||||
#include "getopt_int.h"
|
||||
|
|
Loading…
Reference in a new issue