1
0
Fork 0
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:
Lasse Collin 2023-09-12 20:55:10 +03:00
parent aa0cd585d2
commit aff1b479c7
2 changed files with 6 additions and 2 deletions

View file

@ -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"

View file

@ -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"