aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpowwow@askgustav.com <powwow@askgustav.com>2019-03-19 22:51:09 (GMT)
committerSteve Slaven <bpk@hoopajoo.net>2019-04-23 20:37:05 (GMT)
commit12b225adb1956a2b7b4ed30565ce478dfedf1653 (patch)
tree64076497a3bfb129dd08014e2985a8c58500e850
parentd45862d2324310b34b8a45f78ba9312ce3a58f1a (diff)
downloadpowwow-12b225adb1956a2b7b4ed30565ce478dfedf1653.zip
powwow-12b225adb1956a2b7b4ed30565ce478dfedf1653.tar.gz
powwow-12b225adb1956a2b7b4ed30565ce478dfedf1653.tar.bz2
require C89 and set _XOPEN_SOURCE=700 when compiling
-rw-r--r--Makefile.am3
-rw-r--r--configure.in6
-rw-r--r--edit.c1
-rw-r--r--eval.c12
-rw-r--r--tty.c1
5 files changed, 14 insertions, 9 deletions
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 <stdlib.h>
#include <unistd.h>
#include <string.h>
+#include <strings.h>
#include <ctype.h>
#include <time.h>
#include <sys/types.h>
diff --git a/eval.c b/eval.c
index 8673c65..1a64108 100644
--- a/eval.c
+++ b/eval.c
@@ -12,16 +12,18 @@
*
*/
+#include <ctype.h>
+#include <errno.h>
+#include <limits.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
-#include <ctype.h>
-#include <errno.h>
-#include <unistd.h>
+#include <strings.h>
#include <time.h>
-#include <sys/types.h>
+#include <unistd.h>
+
#include <sys/time.h>
-#include <limits.h>
+#include <sys/types.h>
#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 <alloca.h>
#include <assert.h>
#include <errno.h>
#include <fcntl.h>