aboutsummaryrefslogtreecommitdiff
path: root/st.c
diff options
context:
space:
mode:
authorAurélien Aptel <aurelien.aptel@gmail.com>2010-08-30 13:04:19 +0200
committerAurélien Aptel <aurelien.aptel@gmail.com>2010-08-30 13:04:19 +0200
commit4f5c7e3a31f9fde83b04c67c310685e1eba0da68 (patch)
treec7323028d822461af56c82442ff894668f8103b1 /st.c
parent1ba065d9935da7673afd1b2ceb4b3e4e8f603b83 (diff)
downloadst-4f5c7e3a31f9fde83b04c67c310685e1eba0da68.tar.gz
st-4f5c7e3a31f9fde83b04c67c310685e1eba0da68.tar.bz2
use predefined OS macro instead of uname.
Diffstat (limited to 'st.c')
-rw-r--r--st.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/st.c b/st.c
index af3ec6d..f42797f 100644
--- a/st.c
+++ b/st.c
@@ -20,11 +20,11 @@
#include <X11/keysym.h>
#include <X11/Xutil.h>
-#if defined(LINUX)
+#if defined(__linux)
#include <pty.h>
-#elif defined(OPENBSD) || defined(NETBSD)
+#elif defined(__OpenBSD__) || defined(__NetBSD__)
#include <util.h>
-#elif defined(FREEBSD)
+#elif defined(__FreeBSD__) || defined(__DragonFly__)
#include <libutil.h>
#endif