aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile1
-rw-r--r--config.mk9
-rw-r--r--st.c6
3 files changed, 4 insertions, 12 deletions
diff --git a/Makefile b/Makefile
index ef3bf09..2fb13ae 100644
--- a/Makefile
+++ b/Makefile
@@ -10,7 +10,6 @@ all: options st
10 10
11options: 11options:
12 @echo st build options: 12 @echo st build options:
13 @echo "SYSTEM = ${SYSTEM}"
14 @echo "CFLAGS = ${CFLAGS}" 13 @echo "CFLAGS = ${CFLAGS}"
15 @echo "LDFLAGS = ${LDFLAGS}" 14 @echo "LDFLAGS = ${LDFLAGS}"
16 @echo "CC = ${CC}" 15 @echo "CC = ${CC}"
diff --git a/config.mk b/config.mk
index f0c7e2e..46efc0c 100644
--- a/config.mk
+++ b/config.mk
@@ -14,15 +14,8 @@ X11LIB = /usr/X11R6/lib
14INCS = -I. -I/usr/include -I${X11INC} 14INCS = -I. -I/usr/include -I${X11INC}
15LIBS = -L/usr/lib -lc -L${X11LIB} -lX11 -lutil 15LIBS = -L/usr/lib -lc -L${X11LIB} -lX11 -lutil
16 16
17# uncomment manualy your system if compilation fail
18SYSTEM = -D`uname | tr a-z A-Z`
19#SYSTEM = -DLINUX
20#SYSTEM = -DOPENBSD
21#SYSTEM = -DFREEBSD
22#SYSTEM = -DNETBSD
23
24# flags 17# flags
25CPPFLAGS = -DVERSION=\"${VERSION}\" ${SYSTEM} 18CPPFLAGS = -DVERSION=\"${VERSION}\"
26CFLAGS = -std=c99 -pedantic -Wall -Os ${INCS} ${CPPFLAGS} 19CFLAGS = -std=c99 -pedantic -Wall -Os ${INCS} ${CPPFLAGS}
27LDFLAGS = -s ${LIBS} 20LDFLAGS = -s ${LIBS}
28 21
diff --git a/st.c b/st.c
index af3ec6d..f42797f 100644
--- a/st.c
+++ b/st.c
@@ -20,11 +20,11 @@
20#include <X11/keysym.h> 20#include <X11/keysym.h>
21#include <X11/Xutil.h> 21#include <X11/Xutil.h>
22 22
23#if defined(LINUX) 23#if defined(__linux)
24 #include <pty.h> 24 #include <pty.h>
25#elif defined(OPENBSD) || defined(NETBSD) 25#elif defined(__OpenBSD__) || defined(__NetBSD__)
26 #include <util.h> 26 #include <util.h>
27#elif defined(FREEBSD) 27#elif defined(__FreeBSD__) || defined(__DragonFly__)
28 #include <libutil.h> 28 #include <libutil.h>
29#endif 29#endif
30 30