From 869de687dc0723e5ab531c2106ecfad0e0ac3b32 Mon Sep 17 00:00:00 2001 From: William Pitcock Date: Sun, 6 Sep 2015 09:41:34 -0500 Subject: [PATCH] getopt_long: fixups, remove dependency on libpkgconf etc. --- Makefile.am | 1 + getopt_long.c | 6 ++---- getopt_long.h | 4 +--- 3 files changed, 4 insertions(+), 7 deletions(-) diff --git a/Makefile.am b/Makefile.am index 7447424..8464358 100644 --- a/Makefile.am +++ b/Makefile.am @@ -67,6 +67,7 @@ libpkgconf_la_LDFLAGS = -version-info 1:0:0 pkgconf_MANS = pkgconf.1 pkgconf_LDADD = libpkgconf.la pkgconf_SOURCES = main.c getopt_long.c +noinst_HEADERS = getopt_long.h dist_doc_DATA = README.md AUTHORS diff --git a/getopt_long.c b/getopt_long.c index 4db51e6..240c5ad 100644 --- a/getopt_long.c +++ b/getopt_long.c @@ -56,15 +56,13 @@ * POSSIBILITY OF SUCH DAMAGE. */ -#include "config.h" - #include "getopt_long.h" -#include "stdinc.h" - #include +#include #include #include +#include #define PKGCONF_HACK_LOGICAL_OR_ALL_VALUES diff --git a/getopt_long.h b/getopt_long.h index 79b7e4f..b124291 100644 --- a/getopt_long.h +++ b/getopt_long.h @@ -30,12 +30,10 @@ * POSSIBILITY OF SUCH DAMAGE. */ -#include "config.h" - #ifndef _GETOPT_LONG_H_ #define _GETOPT_LONG_H_ -#include "stdinc.h" +#include /* * GNU-like getopt_long()/getopt_long_only() with 4.4BSD optreset extension.