Rewrote configure.in and replaced header.in with one generated by autoheader, added copyright notice to all source files as per GNU standards, and changed "pv --version" output to conform to GNU standards.

This commit is contained in:
Andrew Wood
2023-07-22 19:35:43 +01:00
parent b923afc385
commit 7448c7f320
33 changed files with 1027 additions and 505 deletions
+5 -19
View File
@@ -1,33 +1,19 @@
/*
* Functions internal to the PV library.
* Functions internal to the PV library. Include "config.h" first.
*
* Copyright 2002-2008, 2010, 2012-2015, 2017, 2021, 2023 Andrew Wood
*
* Distributed under the Artistic License v2.0; see `doc/COPYING'.
*/
#ifndef _PV_INTERNAL_H
#define _PV_INTERNAL_H 1
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#ifndef _PV_H
#include "pv.h"
#endif /* _PV_H */
#include <signal.h>
#include <sys/types.h>
#include <sys/time.h>
#include <sys/stat.h>
/*
* Since macOS 10.6, stat64 variants are equivalent to plain stat, and the
* suffixed versions have been removed in macOS 11. See stat(2).
*/
#if defined(__APPLE__) || defined(APPLE)
#define stat64 stat
#define fstat64 fstat
#define lstat64 lstat
#endif
#ifdef __cplusplus
extern "C" {
#endif