From 12b225adb1956a2b7b4ed30565ce478dfedf1653 Mon Sep 17 00:00:00 2001 From: "powwow@askgustav.com" Date: Tue, 19 Mar 2019 23:51:09 +0100 Subject: require C89 and set _XOPEN_SOURCE=700 when compiling diff --git a/Makefile.am b/Makefile.am index 4e87cab..ce2a8c5 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,5 +1,6 @@ # Default help file directory -AM_CFLAGS=-DPOWWOW_DIR=\"$(pkgdatadir)\" -DPLUGIN_DIR=\"$(plugindir)\" +AM_CPPFLAGS=-D_XOPEN_SOURCE=700 -DPOWWOW_DIR=\"$(pkgdatadir)\" \ + -DPLUGIN_DIR=\"$(plugindir)\" bin_PROGRAMS = powwow powwow-muc powwow-movieplay powwow_SOURCES = beam.c cmd.c log.c edit.c cmd2.c eval.c \ diff --git a/configure.in b/configure.in index 8862fc0..9b02bf8 100644 --- a/configure.in +++ b/configure.in @@ -1,6 +1,6 @@ # Process this file with autoconf to produce a configure script. -AC_INIT -AM_INIT_AUTOMAKE(powwow, 1.2.18) +AC_INIT(powwow, 1.2.18) +AM_INIT_AUTOMAKE AC_CANONICAL_HOST @@ -74,7 +74,7 @@ AM_CONDITIONAL([MAN_PAGE_ENCODING_IS_UTF_8], [test "${MAN_PAGE_ENCODING}" = UTF-8 ]) # Checks for programs. -AC_PROG_CC +AC_PROG_CC_C89 AC_PROG_LN_S # Checks for libraries. diff --git a/edit.c b/edit.c index 7229f81..bcfab21 100644 --- a/edit.c +++ b/edit.c @@ -14,6 +14,7 @@ #include #include #include +#include #include #include #include diff --git a/eval.c b/eval.c index 8673c65..1a64108 100644 --- a/eval.c +++ b/eval.c @@ -12,16 +12,18 @@ * */ +#include +#include +#include #include #include #include -#include -#include -#include +#include #include -#include +#include + #include -#include +#include #include "defines.h" #include "main.h" diff --git a/tty.c b/tty.c index 243384b..104c780 100644 --- a/tty.c +++ b/tty.c @@ -9,6 +9,7 @@ * (at your option) any later version. * */ +#include #include #include #include -- cgit v0.10.2