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,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
# ifdef HAVE_CONFIG_H
# include <config.h> # include <config.h>
# endif
#endif #endif
#include "getopt.h" #include "getopt.h"

View file

@ -20,7 +20,9 @@
#ifdef _LIBC #ifdef _LIBC
# include <getopt.h> # include <getopt.h>
#else #else
# ifdef HAVE_CONFIG_H
# include <config.h> # include <config.h>
# endif
# include "getopt.h" # include "getopt.h"
#endif #endif
#include "getopt_int.h" #include "getopt_int.h"