]> git.armaanb.net Git - st.git/blobdiff - st.c
use predefined OS macro instead of uname.
[st.git] / st.c
diff --git a/st.c b/st.c
index af3ec6d14b1bc18c746f6cf225b4c4b5b943c37d..f42797f0967138e854ebcdc1931f63a7fcb76e81 100644 (file)
--- a/st.c
+++ b/st.c
 #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