getopt_long: fixups, remove dependency on libpkgconf etc.

feature/tap-sh
William Pitcock 2015-09-06 09:41:34 -05:00
parent a706b3dccc
commit 869de687dc
3 changed files with 4 additions and 7 deletions

View File

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

View File

@ -56,15 +56,13 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
#include "config.h"
#include "getopt_long.h"
#include "stdinc.h"
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#define PKGCONF_HACK_LOGICAL_OR_ALL_VALUES

View File

@ -30,12 +30,10 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
#include "config.h"
#ifndef _GETOPT_LONG_H_
#define _GETOPT_LONG_H_
#include "stdinc.h"
#include <stdint.h>
/*
* GNU-like getopt_long()/getopt_long_only() with 4.4BSD optreset extension.