commit: 0ba5429ed8ac1883d91add8297dfe85943003453
parent: 86e34b9f54c5801734718138dacd7b08eb1e4946
author: Brian Callahan <bcallah@openbsd.org>
date: Sun, 7 Jan 2018 19:10:43 -0500
Allow portable files to be built.
8 files changed, 14 insertions(+), 2 deletions(-)
diff --git a/history.c b/history.c
@@ -21,7 +21,7 @@
#include <stdio.h>
#include <string.h>
#include <unistd.h>
-#if defined(__linux__) || defined(__CYGWIN__)
+#if defined(NEED_STRAVIS) || defined(NEED_STRUNVIS)
#include "vis.h"
#else
#include <vis.h>
diff --git a/reallocarray.c b/reallocarray.c
@@ -15,6 +15,8 @@
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
+#include "pconfig.h"
+
#ifdef NEED_REALLOCARRAY
#include <sys/types.h>
diff --git a/signame.c b/signame.c
@@ -28,6 +28,8 @@
* SUCH DAMAGE.
*/
+#include "pconfig.h"
+
#ifdef NEED_SIGNAME
#include <signal.h>
diff --git a/strlcat.c b/strlcat.c
@@ -16,6 +16,8 @@
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
+#include "pconfig.h"
+
#ifdef NEED_STRLCAT
#include <sys/types.h>
diff --git a/strlcpy.c b/strlcpy.c
@@ -16,6 +16,8 @@
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
+#include "pconfig.h"
+
#ifdef NEED_STRLCPY
#include <sys/types.h>
diff --git a/strtonum.c b/strtonum.c
@@ -17,6 +17,8 @@
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
+#include "pconfig.h"
+
#ifdef NEED_STRTONUM
#include <errno.h>
diff --git a/unvis.c b/unvis.c
@@ -28,6 +28,8 @@
* SUCH DAMAGE.
*/
+#include "pconfig.h"
+
#ifdef NEED_STRUNVIS
#include <sys/types.h>
diff --git a/vis.c b/vis.c
@@ -28,7 +28,7 @@
* SUCH DAMAGE.
*/
-/* Mac OS X and FreeBSD are missing stravis */
+#include "pconfig.h"
#ifdef NEED_STRAVIS