aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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>