fix build for other systems like - lchat - A line oriented chat front end for ii.
(HTM) git clone git://git.suckless.org/lchat
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
---
(DIR) commit 46b720fa3c8b3be05294b9d2baf69a2f1c8cc20d
(DIR) parent 8021e906ef9fffb74f35409782ce41100bf0efb7
(HTM) Author: Jan Klemkow <j.klemkow@wemelug.de>
Date: Sun, 27 Dec 2015 23:45:06 +0100
fix build for other systems like
Diffstat:
M Makefile | 3 ++-
M lchat.1 | 2 +-
M lchat.c | 4 ++++
3 files changed, 7 insertions(+), 2 deletions(-)
---
(DIR) diff --git a/Makefile b/Makefile
@@ -11,7 +11,8 @@ lchat: lchat.o slackline.o
$(CC) -o $@ lchat.o slackline.o -ltermlib
lchat.o: lchat.c
- $(CC) -c $(CFLAGS) -o $@ lchat.c
+ $(CC) -c $(CFLAGS) -D_BSD_SOURCE -D_XOPEN_SOURCE -D_GNU_SOURCE \
+ -o $@ lchat.c
slackline.o: slackline.c slackline.h
$(CC) -c $(CFLAGS) -o $@ slackline.c
(DIR) diff --git a/lchat.1 b/lchat.1
@@ -29,7 +29,7 @@ and
files inside of the
.Ar directory
path.
-
+.sp 1
The options are as follows:
.Bl -tag -width Ds
.It Fl a
(DIR) diff --git a/lchat.c b/lchat.c
@@ -30,6 +30,10 @@
#include "slackline.h"
+#ifndef INFTIM
+#define INFTIM -1
+#endif
+
struct termios origin_term;
struct winsize winsize;